Description
In general it would be nice if react-redux-firebase was compatible with lazy-loading or at least modular loading of the Firebase library which is rather large.
Use case is: What if I want to only use firebase auth (and not Firebase database) with react-redux-firebase?
In my code, if I only want to use Firebase auth (and not Firebase database, Firebase storage etc...) I would load the SDK like this:
import firebase from 'firebase/app';
import 'firebase/auth';
In general, the best would be that react-redux-firebase not depend on importing the firebase SDK but only rely on being passed a Firebase app instance and would simply test if firebase features are loaded - e.g. if(firebase.database){/*load firebase database middleware*/}
- to activate parts of the middleware (or have multiple middlewares, one for each features).