3 ms·
Your conclusions about how Om works are still inaccurate :) There is no such limitation about what data structures you can use. There is no state change notifi
by swannodette 12y ago
Your conclusions about how Om works are still inaccurate :)
There is no such limitation about what data structures you can use. There is no state change notification interface for data. Components can update their local state - no notification required here. Updates to global information (the application state) triggers a re-render from the root component of the application. Because of persistent data structures these updates can be done in logarithmic time as we never compute React UI subtrees that depend on unchanged data - it's just a reference equality check (JavaScript ===) in ClojureScript for any given piece of data to know whether it's changed or not.