Inferno: Support ReactDom.hydrate in inferno-compat

Created on 3 Feb 2018  路  4Comments  路  Source: infernojs/inferno

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

feature request

Most helpful comment

I just published new version of next 4.0.0-18 hydrate is available there.

All 4 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Silviu-Marian picture Silviu-Marian  路  5Comments

mohammedzamakhan picture mohammedzamakhan  路  3Comments

nassirdreffy picture nassirdreffy  路  4Comments

Vpr99 picture Vpr99  路  4Comments

yury-dymov picture yury-dymov  路  5Comments