3 ms·
That was what I was expecting to hear. We really don't need Flux (the listen-for-and-query-the-stores part of it) if we manage to wrap every data into a contex
by fiatjaf 12y ago
That was what I was expecting to hear.
We really don't need Flux (the listen-for-and-query-the-stores part of it) if we manage to wrap every data into a context with cursors, right?
- mikaelbr 12y agoYeah. The main part here is using immutable structures from the top, having cursors to sub-components with information about only the relevant data for that component, and have a way of re-start the loop when a data has changed. Sometimes, though, we need to communicate to a parent or ancestor (e.g. to delete an item in a list). For that we can simply use events (or possibly callbacks) passed as statics to components. (Statics are values that doesn't trigger a component update when changed.)