reactfire icon indicating copy to clipboard operation
reactfire copied to clipboard

[WIP] Support React 18

Open jhuleatt opened this issue 4 years ago • 0 comments

React 18 is now in beta.

This PR will investigate how we can/should use the new APIs available in React 18:

useSyncExternalStore

This can probably replace the bulk of the useEffect/useReducer stuff in useObservable 🎉

useId

Maybe this can help with caching?

useInsertionEffect

From the working group discussion:

The use case is specifically for inserting global DOM nodes like

Maybe useful for react-firebaseui?

jhuleatt avatar Nov 17 '21 17:11 jhuleatt