Skip to content
Discussion options

You must be logged in to vote

Our subscribe function is stable regardless of useShallow.

api.subscribe,

A bit technical note

Yes, the use of useCallback in useShallow technically optimizes it, but I don't think people use useCallback when they use useShallow, and we don't recommend it anyway as it's just micro optimization. If you need such micro optimization, I think avoiding useShallow would be better.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AlaricBaraou
Comment options

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