untangled

NEW CHANNEL: #fulcro
doddenino 2017-02-03T10:24:32.002791Z

I get the same error with a clean lein new figwheel project and all the latest versions of clj, cljs, fighweel, om and untangled

gardnervickers 2017-02-03T14:33:53.002793Z

@tony.kay That issue turned out to be a problem with our app state not reflecting component state. I was under the impression that even if an “entity” didn’t exist in our app-state, we could still construct it from the parent component and update it using the ident refresh.

gardnervickers 2017-02-03T14:36:00.002794Z

This is in the context of initial page load at some specific resource. We found that even if we’re in the process of loading that resource by id, we still need to populate the app-db with a partial entity that produces the correct ident, instead of just constructing that partial entity as a map in the parents render method.

tony.kay 2017-02-03T19:06:30.002799Z

@gardnervickers ah, yeah, that "could" work, but you'd have to make sure it was properly touched-up with metadata that Om adds.

tony.kay 2017-02-03T19:07:41.002800Z

@doddenino perhaps source paths settings? Are you sure it is on both the clojure source-path AND the cljsbuild source path?

gardnervickers 2017-02-03T22:03:57.002801Z

@tony.kay Should there be another case in this cond for when we’re using load to fetch data for an ident, but don’t have a data-field set? https://github.com/untangled-web/untangled-client/blob/master/src/untangled/client/impl/data_fetch.cljc#L285-L286 I believe this is what is prohibiting me from using an ident to load from my remote without having to specify that same ident as the :target.