Skip to content

useSignalEffect not as precise as useEffect with signals properties #654

Discussion options

You must be logged in to vote

It sounds like you are looking for something like deepsignal by default signals are shallow reactivity which is the easiest thing to reason about. You change the whole object so it will trigger anything listening for said object. If say, every property on said state machine was a signal and you'd do stateMachine.foo.value then it would run granularly.

These things can be found described on our pages as well https://preactjs.com/blog/introducing-signals/

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@darioRandazzoAccedo
Comment options

@JoviDeCroock
Comment options

Answer selected by JoviDeCroock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants