Fork me on GitHub
#fulcro
<
2017-10-15
>
tony.kay02:10:16

@juno You can’t use those in cljc files

tony.kay02:10:20

they are JS only 🙂

tony.kay02:10:35

so, you’ll have to use conditional compilation, or a cljs file.

juno03:10:14

@tony.kay thank you. I got it working.

claudiu08:10:39

is there a built in way in fulcro to move the data once successfully loaded to a specific location like target ? (target seems to add the loading info so it causes a bit of flickering).

wilkerlucio11:10:09

@claudiu you can set the option :marker to false, this will prevent the loading markers to be added

wilkerlucio12:10:50

no problem 😉

wilkerlucio12:10:12

@claudiu and one tip if you like to show some loading UI without the flickering: use a different key for the target (eg: :ui/my-think-loading), and then move the result in a post-mutation

claudiu12:10:10

yep that's what I'm doing now. was just hoping for something in flucro seems like a pretty common scenario

wilkerlucio12:10:41

could be, but in this case, if fulcro have something, it would have to define some convention over the names

wilkerlucio12:10:16

and mess with queries and other things, so getting a bit complex, I'm not sure if we have a good idea of how to solve without intruducing much complexity

wilkerlucio12:10:37

in the end, I think is not so bad to solve in now, just a bit extra effort 🙂

claudiu12:10:14

yep it's ok. In a bit of a rush to finish a project now, but pretty sure it's easy to write a general post-mutation for simple scenarious

claudiu12:10:16

looking at the code, I have quite a few post mutations just for this scenario