Skip to content

App UI reactivity - single table row #2779

Answered by rubenfiszel
gcleaves asked this question in Questions
Discussion options

You must be logged in to vote

The Reactivity model that we use is based on the concepts of Reactive Programming. https://en.wikipedia.org/wiki/Reactive_programming

UI reactivity is based on dataflows and it's often not possible to mutate values directly except for mutable components by nature such as inputs. We do have one mutable data source which is state. So you can either re-read completely your table after update OR make your table use as datasource state.foo and mutate state.foo directly with any transformer/frontend scripts. You will need a script to also hydrate initially state.foo

The reason for avoiding mutability is that it's an anti-pattern for highly reactive, large scale apps. Let say you mutate your tab…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gcleaves
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants