Inferno: Compat: unstable_renderSubtreeIntoContainer

Created on 7 Dec 2016  路  5Comments  路  Source: infernojs/inferno

Thank you for all the hard work that has gone into inferno-compat lately. I just dropped in 1.0.0-beta31 into a project of mine, and it worked beautifully with React Router v4. Awesome!

I also dropped it into a more esoteric project that uses react virtualized and google-map-react. Both these projects use unstable_renderSubtreeIntoContainer from ReactDOM. Is this something that could be added to inferno-compat?

I completely understand if you don't want to clutter the project with support for unstable APIs, or if it just isn't compatible with the way Inferno is built. I just thought I'd ask since it looks like it's here to stay and maybe some inspiration can be drawn from preact-compat.

All 5 comments

@EmilTholin Thanks for trying out Inferno :)

I'll aim to add unstable_renderSubtreeIntoContainer in beta32 which should hopefully drop tonight! It should come with a whole load more bug fixes too for inferno-compat :)

@EmilTholin I've pushed some changes to dev can you possible try them out please?

https://github.com/trueadm/inferno/tree/dev/packages/inferno/dist

You'll need to copy the various files into your node_modules/inferno/dist:

  • inferno-compat.js
  • inferno.js
  • inferno-component.js

Thanks :)

It worked like a charm! Fantastic!

@EmilTholin so much for it staying around :P https://twitter.com/sebmarkbage/status/806649110879027200

@trueadm I apologize. I had no idea.
If I understand it correctly, it will still be supported, but portals will be the new way going forward.

Was this page helpful?
0 / 5 - 0 ratings