Is there a possibility to make store fields readonly? #4233
StarGuardian
started this conversation in
General
Replies: 1 comment
-
To be honest, the main reason there isn't a read/write separation for stores is just the additional duplication/boilerplate of creating additional structs in the library that it would entail. You can roll your own fairly straightforwardly using the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all!
I'm developing an application with uses unidirectional data flow architecture. There is a state machine which gets events from the UI, sends requests to the backend and updates data for the UI. Reactive stores suits this well, but I prefer to have only one point where the state can be modified. As far as I understand reactive stores allow modification anywhere. How can I prevent it? It would be similar to signals which have separate ReadSignal and WriteSignal parts.
Beta Was this translation helpful? Give feedback.
All reactions