shenjunru / react-fiber-keep-alive

A component that maintains component state and avoids repeated re-rendering.
MIT License
60 stars 1 forks source link

Can i use it with any renderer? #5

Closed dungeon2567 closed 1 year ago

dungeon2567 commented 1 year ago

I`m using react with Unity-3D Game engine and i want to keep alive some routes, can i use it?

shenjunru commented 1 year ago

only react-dom renderer is supported

shenjunru commented 1 year ago

It is possible to support other react renderer. I can expose used view instance manipulators (like react-reconciler config), and input by react context. This requires the view instance can be hosted on js side.

So far, as I know react-native is not supported, which requires native implementation. Ref: https://github.com/paol-imi/react-reparenting/issues/7

weee-shinan commented 1 year ago

I have failed to use this library in my nextjs project