Skip to content
Discussion options

You must be logged in to vote

Signals are created lazily for known keys only, meaning they’re only wrapped as signals once they're accessed and confirmed to exist. If you want every possible property — even undefined or unknown ones — to behave like a signal from the start, you'd need to fundamentally change how toDeepSignal works. That would involve returning a signal for every property access, regardless of whether the key exists in the object at that moment. This improves ergonomics but comes with trade-offs in type safety, performance, and runtime guarantees.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jvanderen1
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