S
SolidJS12mo ago
lorefnon

Subscribe to patches for a store ?

Hello, I was wondering if there is a good way to subscribe to a stream of patches from a solidjs store. I am primarily looking for something similar to what MobX provides (also immer)
2 Replies
subframe7536
subframe753612mo ago
use createEffect(on(() => store.data.toBeWatched, listener)) or https://primitives.solidjs.community/package/deep#trackstore
Solid Primitives
A library of high-quality primitives that extend SolidJS reactivity
lorefnon
lorefnonOP12mo ago
Ah the captureStoreUpdates utility is exactly what I was looking for. Thank you.
Solid Primitives
A library of high-quality primitives that extend SolidJS reactivity
Want results from more Discord servers?
Add your server