Subscribe to Store changes within a React component. It's not recommended to use this directly, instead using store.useSubscribe is advised.
If you need to perform some side effects based on state changes, you should prefer using useUpdateEffect over this method.