Fork me on GitHub
#untangled
<
2017-02-02
>
gardnervickers18:02:59

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

doddenino18:02:31

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... 😞

anmonteiro20:02:30

@doddenino seems to be a .cljs file

anmonteiro20:02:51

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

doddenino21:02:16

@anmonteiro i think it's in a cljc file

doddenino21:02:26

Can't check now though

tony.kay22:02:37

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

tony.kay22:02:35

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

tony.kay22:02:53

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.kay22:02:37

@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.

doddenino22:02:45

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

tony.kay22:02:12

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?)

doddenino22:02:08

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