What is the runtime model of the UI? A hierarchy of components.
When a delta arrives we get a long row, which can be split into stages (see rules in #4) , each stage mapping to a component into the hierarchy.
If there's no component then it should be instantiated.
The last two would need to be differentiated by adding an id (the mount point id for example): [[item :item/title] [(ground :mount_421) mnt] [(get-else item :item/done nil) done]]
What is the runtime model of the UI? A hierarchy of components.
When a delta arrives we get a long row, which can be split into stages (see rules in #4) , each stage mapping to a component into the hierarchy. If there's no component then it should be instantiated.
Let's imagine (syntax with #5):
Here I count 4 templates:
Which would mean 3 queries
[[item :item/title]]
[[item :item/title] [(get-else item :item/title nil) title]]
[[item :item/title] [(get-else item :item/done nil) done]]
The last two would need to be differentiated by adding an id (the mount point id for example):
[[item :item/title] [(ground :mount_421) mnt] [(get-else item :item/done nil) done]]
Thus such code should work:
It's too functional/persistent for something which is linear.