Hello awesome inferno maintainers!
It would be great to support hydrate in inferno-compat, for maintaining React 16 compatibility.
I encountered this issue when I was researching using Inferno with next.js, as their latest version uses React 16 functionalities (https://github.com/zeit/next.js/issues/3264). This was brought up briefly in #1239. One of the really cool thing with inferno is that it's compatible with React, so it would be really nice to have this feature!
Any idea how much work this would be and how we can help push this feature through?
Best,
xkxx
Ok, this is simple thing. It seems like React17 is deprecating hydration by render https://reactjs.org/docs/react-dom.html#hydrate
We can do the same in v5. I will rename and add hydrate to Inferno core.
I will rename hydrateRoot to hydrate so its same as React. and add it to inferno-compat and inferno packages. It was internal method previously so there should be no breaking change.
I just published new version of next 4.0.0-18 hydrate is available there.
Wow cool, thanks for the super quick response and fix!
I guess I could contribute by updating the docs :) I'll start on that shortly.
Most helpful comment
I just published new version of next
4.0.0-18hydrate is available there.