I'm working on a Event + State management library, building on top of Signia and trying to understand the internals better.
Somehow I was reading the docs but skipped over useValue and tried to implement re-rendering of signals without the library user having to use track().
Hi there,
I'm working on a Event + State management library, building on top of Signia and trying to understand the internals better.
Somehow I was reading the docs but skipped over
useValue
and tried to implement re-rendering of signals without the library user having to usetrack()
.So I wrote this:
What's wrong with this? It seems to work just fine in a small demo app, but
useValue
seems to do a lot more things... Would like to know why :-)