does subscribeWithSelector need an unsubscribe method? #2910
Answered
by
dbritto-dev
Need-an-AwP
asked this question in
Q&A
-
im using the subscribeWithSelector middleware to subscribe some data from my store, like useeffect in react (im not very sure if this is the proper way of using store) |
Beta Was this translation helpful? Give feedback.
Answered by
dbritto-dev
Dec 17, 2024
Replies: 1 comment 2 replies
-
@Need-an-AwP the |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Need-an-AwP
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Need-an-AwP the
subscribe
method returns theunsubscribe
method -> https://zustand.docs.pmnd.rs/apis/create#subscribing-to-state-updates