GregoryConrad / rearch-dart

Re-imagined approach to application design and architecture
https://pub.dev/packages/rearch
MIT License
92 stars 4 forks source link

ReArch vs Signals #137

Closed jtkeyva closed 7 months ago

jtkeyva commented 7 months ago

How does this compare to https://pub.dev/packages/signals ? Why would I use one over the other? Thanks

GregoryConrad commented 7 months ago

Could’ve sworn I’ve answered this before somewhere, but I couldn’t find it, so here’s a brief list of the differences.

signals only constitute a subset of ReArch’s functionality. If you:

You’d finally arrive at signals. In fact, I’m fairly sure you could entirely implement signals above ReArch because it does only constitute a subset of ReArch’s features.

jtkeyva commented 7 months ago

thank you. i may make the leap from bloc but this is a big move. so essentially signals is a feature of ReArch? i am easily able to wrap my head around signals. maybe it's the docs or naming convention?

signals has a lot of momentum, perhaps "Why not Signals" would be a good addition to your docs

GregoryConrad commented 7 months ago

so essentially signals is a feature of ReArch?

More or less, yup. AFAIK all the specific types of signals have a corresponding effect that you can use in ReArch. Example: use.state for a regular signal, use.future for a future signal, etc. etc.

perhaps "Why not Signals" would be a good addition to your docs

agreed, thought I had added it before but I guess I haven’t

jtkeyva commented 7 months ago

thank you sir :)