Skip to content

Do I need to memoize selectors? #658

Closed Answered by dai-shi
mfbx9da4 asked this question in Q&A
Discussion options

You must be logged in to vote

That section is introduced in v3, because at that time we were expecting useMutableSource which would require memoized selectors (without stable selectors, it caused infinite loop). #422

Now, we will have useSyncExternalStore instead and memoized selectors are not necessary. That section is removed in v4. #550 (Hmm, we can remove it now, but v4 will probably be released any time soon.)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mfbx9da4
Comment options

@dai-shi
Comment options

Answer selected by mfbx9da4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants