Fork me on GitHub
#fulcro
<
2018-07-13
>
tony.kay00:07:59

Just released Fulcro 2.6.0-RC1 to clojars.

🎉 28
tony.kay00:07:53

Nearly full support for all new React 16.4 features. Only one missing: The new static lifecycle method getDerivedStateFromProps…that one is going to take some tinkering to get it to pass through the macros ok.

tony.kay00:07:14

Book updated

wilkerlucio01:07:27

@tony.kay nice! hey, I think we should also add fragments to this version before release

tony.kay01:07:24

oh yeah…and portal

tony.kay01:07:57

it already supports returning arrays of things from render, which is essentially fragment

wilkerlucio01:07:59

cool, just got home, gonna give a try to the RC and see if everything goes smooth

wilkerlucio01:07:47

give a round across many different components, didn't find any issues so far 🙂

wilkerlucio01:07:22

all the previous issues I found are gone

wilkerlucio01:07:39

about the fragments, so you are saying that if I'm using React 16, I can return a vector from the render function, and that is the same as returning a fragment?

tony.kay14:07:22

Fragment lets you do a little more, but yes, you can return an array from render

tony.kay15:07:34

2.6.0-RC2 released with support for React fragments and returning vectors of children from defsc

tony.kay15:07:44

book updated

tony.kay15:07:33

@wilkerlucio so it turned out I didn’t realize the spec for defsc would not allow a vector. Fixed that..hopefully that does not cause any defsc problems. fragment is now part of all dom namespaces.

wilkerlucio16:07:26

@tony.kay nice, but I think frament is more primitives thing than a dom thing

wilkerlucio16:07:41

considering that fragments will work in RN or other React environments, its not a DOM specific thing

tony.kay16:07:26

feel free to patch and PR as long as it’s tested in the envs it is intended to work.

wilkerlucio16:07:49

ok, I think I'll have some time for that later

tony.kay16:07:20

thx. Did you think fragment would just work in native (e.g. createElement React.Fragment)?

tony.kay16:07:26

I don’t use native, so I don’t know

tony.kay16:07:43

if not, perhaps we should create a native ns for things that help there

wilkerlucio16:07:03

I think so, considering its from the React package, not from ReactDOM

tony.kay16:07:24

yeah, I just don’t have time to test out native stuff

tony.kay16:07:31

got some reason I don’t seem to be getting proper blur events either in react 16 or the new Fulcro…

tony.kay16:07:16

hm…think it might be a problem with a js ecosystem component, actually

tony.kay17:07:39

or the new lifecycle wrappers in Fulcro. Be interested in hearing other’s reports of lifecycle weirdness with this RC