4 ms·
Take a look at this: https://github.com/mquan/cortex https://github.com/mquan/cortex "Cortex is simply a store that works for updates at any level. It achieve
by idibidiart 11y ago
Take a look at this:
https://github.com/mquan/cortex https://github.com/mquan/cortex
"Cortex is simply a store that works for updates at any level. It achieves this by utilizing cursors, which lets each nested node keep track of its path as accessed from the root. When an update occurs, the affected node emits an update event whose payload contains the path of the node as well as instructions on how to update the data at the root. Cortex's internal PubSub picks up the event and routes it to the affected root node. From there, every affected node is rewrapped and updated to maintain immutability while leaving all unaffected nodes untouched. This allows for extremely simple and efficient"