FirebaseExtended / reactfire

Hooks, Context Providers, and Components that make it easy to interact with Firebase.
https://firebaseopensource.com/projects/firebaseextended/reactfire/
MIT License
3.54k stars 403 forks source link

[WIP] Support React 18 #487

Closed jhuleatt closed 1 year ago

jhuleatt commented 2 years ago

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