om

Please ask the channel first, not @dnolen directly!
wilkerlucio 2017-08-15T02:56:41.000074Z

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

đź‘Ť 7
gardnervickers 2017-08-15T15:14:15.000531Z

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.

1
gardnervickers 2017-08-15T16:14:04.000464Z

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?

wilkerlucio 2017-08-15T16:24:30.000381Z

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