You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ah, the error is explained here in the original deepsignalreadme.
I'm still curious about the original question though: what does $prop do? Its still not clear to me from reading that original readme
$prop gets the signal object, and .value gets its value.
conststate=deepSignal({count: 0,name: "John",nested: {deep: "value",},array: [1,2,3],});state.$count.value=2// What is obtained is the signal of the path of count.
Thanks for this great library!
It's not clear to me how
$prop
works. For example, in this modified example from the Readme:What is the difference between the last two lines? They seem to have the same result.
Except i get this error from Deno for the
state.$nested
line:'state.$nested' is possibly 'undefined'.deno-ts(18048)
Thanks!
The text was updated successfully, but these errors were encountered: