hello friends, I would like to share a new library: pathom
is a set of utility functions and patterns to apply during the creation of om.next graph parsers: https://github.com/wilkerlucio/pathom
Very cool @wilkerlucio, this looks like a thoughtful generalization of some similar patterns we’ve implemented inconsistently throughout our recursive parser. Very excited to give this a try.
Will the reconciler avoid pathopt when there’s om/computed
values passed through props? I’m having trouble finding where the reconciler would handle the case where I have a query
{:root [:foo/id {:foo/child [:bar/baz]}]}
with a computed value passed from the root all the way down to the leaf :bar/baz
. Pathopt should re-root the query into [{[:foo/by-id <id>] [{:foo/child [:bar/baz]}]]
if my understanding is correct, but the root component won’t render and om/computed
won’t update in that case right?
thanks, I hope in future we can more and more generic code to deal with the parsers, and I believe we need some sort of consensus for some terms, this project is an attempt to go in that direction, please let me know if you have any suggestions or critics about the ideas there presented