Skip to content

Commit

Permalink
Add the question from #101 to the Q&A section
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Apr 1, 2024
1 parent 9dd0127 commit cf6fab4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,10 @@ Note: untrack doesn't get you out of the `notifying` state, which is maintained
**A**: Signals can form an efficient basis for store-like state management abstractions. A common pattern found in multiple frameworks is an object based on a Proxy which internally represents properties using Signals, e.g., [Vue `reactive()`](https://vuejs.org/api/reactivity-core.html#reactive), or [Solid stores](https://docs.solidjs.com/concepts/stores). These systems enable flexible grouping of state at the right level of abstraction for the particular application.
**Q**: What are Signals offering that `Proxy` doesn't currently handle?
**A**: Proxies must wrap some object. Proxies, by themselves, are not all that useful, but can't be used to create reactive-versions of Map, Set, Object, Array, etc. See Prior Implementations [tracked-built-ins](https://github.com/tracked-tools/tracked-built-ins/tree/master/addon/src/-private).
#### How do Signals work?
**Q**: Are Signals push-based or pull-based?
Expand Down

0 comments on commit cf6fab4

Please sign in to comment.