This enhancer has already been integrated into create
. You can directly create a store
with the useSubscribe
method through it.
Provides the store.useSubscribe()
method to the store
, allowing subscription to the store
's state within React components, automatically unsubscribing upon unmounting.
For details on using store.useSubscribe
, please refer to store.useSubscribe.