untangled

NEW CHANNEL: #fulcro
gardnervickers 2017-02-02T18:12:59.002764Z

Should a data-fetch/load by ident queue up a re-render for that ident?

doddenino 2017-02-02T18:48:31.002765Z

Very noobish question! Why do I get a java.io.FileNotFoundException when I require untangled.client.mutations in a cljc file? It works fine in cljs files... 😞

anmonteiro 2017-02-02T20:17:30.002766Z

@doddenino seems to be a .cljs file

anmonteiro 2017-02-02T20:17:51.002767Z

you need to put it under a reader conditional #?(:cljs (:require [untangled.client.mutations]))

doddenino 2017-02-02T21:12:16.002768Z

@anmonteiro i think it's in a cljc file

doddenino 2017-02-02T21:12:26.002769Z

Can't check now though

tony.kay 2017-02-02T22:21:37.002770Z

@gardnervickers Good question. That would seem reasonable, esp after the fetch completes

tony.kay 2017-02-02T22:22:35.002771Z

could probably just auto-add that to the refresh when calculating the load parameters in load-params* in u.c.data-fetch namespace

tony.kay 2017-02-02T22:23:53.002773Z

Try manually adding the ident to :refresh on the load. If that works, then put in a PR or an issue saying what I just said 🙂

tony.kay 2017-02-02T22:25:37.002778Z

@doddenino what version of UC? The conversion to cljc was recent, and we may not have it perfect. Also, could be a tooling issue. Make sure you're on the latest cljs, figwheel, and cljsbuild.

doddenino 2017-02-02T22:35:45.002780Z

@tony.kay 0.6.0 . I should also have cljs latest version. I'm not sure about figwheel, I'll check tomorrow morning

tony.kay 2017-02-02T22:40:12.002781Z

Yeah, could be something edge-case. Like perhaps there is no cljs in that cljc file, and the compiler is failing to recognize it (e.g. bug?)

doddenino 2017-02-02T22:48:08.002782Z

I have 0 experience with cljc, so there's a big chance that it's just me messing something up 😅