Replies: 2 comments 1 reply
-
I like this approach. Maybe we can create |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've just started really playing with this library this morning, so I'd appreciate someone telling me if I'm going about this in a goofy way: Is there any reason not to wrap signals up in a
Proxy
to avoid having to read and write them by accessing their.value
property?For example, with this function:
I can set up a nice little self-contained module:
And use it like this:
Am I likely to regret this for some reason? Having
.value
all over the place isn't the end of the world, but it'd be real nice if my templates didn't need to know specifically how my data stores are implemented, and could think of them as just regular objects that happen to have be reactive.Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions