Fork me on GitHub
#fulcro
<
2018-08-25
>
tony.kay00:08:54

I’m happy to announce Fulcro 2.6.0 is on Clojars. This new release includes a complete rework of the internals to work with React 16's new lifecycle methods, and should be forward compatible to React 17 when it ships. There is a subtle difference with how component-local state behaves (React made this async), so it it possible you could see breakage if you rely on getting state right after setting it in the same sequence. I also refactored the CSS internals a bit to ensure that garden does not bloat adv compiles of cljs when you do not use component-local CSS. Users of the old defui notation will have to rename their protocol usage.

32
🎉 20
thheller11:08:50

do I need to add something besides the fulcro.inspect.preload for it to work?

thheller11:08:56

I have the chrome ext installed

thheller11:08:10

and it logs Installing Fulcro Inspect ... on startup

thheller11:08:19

but chrome ext still complains about not finding it?

thheller11:08:38

and says No app connected.

thheller11:08:00

ah nvm. it doesn't seem to like <script async>

thheller11:08:06

works without

martinklepsch11:08:52

There were some issues importing Fulcro's API into cljdoc recently which have now been fixed: https://cljdoc.xyz/d/fulcrologic/fulcro/2.6.0

🙂 8
thheller16:08:15

question about fulcro mutations: how common is it that remote returns anything other that true/false?

thheller16:08:48

the client side (remote [env] ...) thing I mean?

levitanong18:08:54

@thheller Might be difficult to find out how common it is without having a survey, but in all my work projects (where I interface with a REST api) I have to perform some witchcraft of the sort.

tony.kay21:08:41

@thheller I use it relatively often. The returning/`target` is particularly useful when you want a mutation to update your state from the server’s return value.

☝️ 4
tony.kay21:08:28

that, combined with ptransact! (to defer a mutation until after the remote has completed) allows for more complicated scenarios of UI reaction to server responses

tony.kay21:08:17

(ptransact! this [(m-with-remote-and-return) (post-mutation-to-analyze-result)])