Closed SonOfSkywalker closed 8 months ago
You could do something along the lines of deeply setting the object to be a signal, I know there are already libs like https://github.com/luisherranz/deepsignal
Thank you ! I will look into it
I've ported full vue deep reactivity tracking for preact signals: preact-signals/utils
Going to close this out, I don't think there's anything here that we need to address.
Hello,
First of all, thank you for your great work on this repo, it simplifies my code and my development work so much.
However, I encountered a problem when using signals. Unless I'm mistaken, it's not possible to update the value of an object stored in a signal without making a copy.
Example:
This isn't an issue for very small objects, but the performance of my application quickly degrades when I have larger objects (dict with ~100 keys): I therefore had to separate my object into several signals, but this results in rather messy code.
Is there a way to solve this problem?
Many thanks