-
Description I want to monitor store changes and then perform some operations. I used the useStore.subscribe API, but it reported an error saying that this method could not be found. Steps export const useStore = () => mapValuesKey('use', rootStore); const saveStore = useStore.subscribe(console.log('saveStore')); Expectation I want to know how to use useStore.subscribe api |
Beta Was this translation helpful? Give feedback.
Answered by
yf-yang
Jan 13, 2025
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
zbeyens
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
useStore.store.subscribe
is available