Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.
All reactions