prescottprue / react-redux-firebase

Redux bindings for Firebase. Includes React Hooks and Higher Order Components.
https://react-redux-firebase.com
MIT License
2.55k stars 559 forks source link

Reduce bundle size by refactoring Firebase SDK bindings to v9 modules #1107

Open mundanelunacy opened 3 years ago

mundanelunacy commented 3 years ago

Do you want to request a feature or report a bug?

Feature. Firebase recently announced they would introduce tree shaking with version 9.

https://firebase.google.com/docs/web/modular-upgrade

Could reduce overall app footprint if react-redux-firebase bindings could be updated so that it only imports necessary modules.

What is the current behavior?

Firebase JSSDK footprint is usually 100Kb when bundled with a React App (Firebase auth, and firestore included)

What is the expected behavior?

prescottprue commented 3 years ago

Hey, thanks for reaching out! Yeah, agreed this would be great, but pretty sure it will be a breaking change (still need to investigate a bit more).

dancixx commented 2 years ago

Any update on this topic? :)