import { useSubscribe } from '@shined/reactive'
useSnapshot(proxyState, listener, options?);
// 使用示例
useSubscribe(store.mutate, () => {
console.log('Store has changed');
});
useSubscribe(store.mutate, changes => {
console.log('Store has changed', changes);
});
useSubscribe(store.mutate, () => {
console.log('Store has changed');
}, { sync: true });