Is there a way to trigger a store change manually even it's still the same object?
Here is my case:
5 Replies
no but you can sort of hijack the store by stuffing getters/setters with signals or memos but that only gives us a signal point of update so anything more complex than that requires you to implement a custom store with proxy
in combination with current store or completely replacing depending on your needs of course
looking at your example, yeah, a simple custom signal should suffice
So what you need is a reactive buffer?
Gist
createSharedArrayBuffer
createSharedArrayBuffer. GitHub Gist: instantly share code, notes, and snippets.
Thanks, I think I can just set a
Signal<TypedArray>
in store like this:
yep that's also an option, if you don't care about setting with store setter api