-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Easy Population type function #33
Comments
@Bojhan I really love this idea, and actually worked with a library that a friend made a while back that included similar functionality. I would be interested to see how the API would look for this. My initial thoughts are just to follow the same pattern with a |
I got a simple implementation of this working, looking like this to populate a list of projects that
It currently doesn't work right due to #38, so going to solve that first before trying to integrate this. |
* Information added to README about switch to [react-redux-firebase](https://github.com/prescottprue/react-redux-firebase) * Population capability described in [#33](#33) * Handling of updating props within firebase connect fixing [#38](#38) * Debouncing with toggle through config fixing [#40](#40)
@Bojhan Note: The library has been renamed to react-redux-firebase for clarity and to match other redux library naming conventions. |
## Breaking Changes - Data gathered during population is now normalized in redux [following defined redux practice of normalizing](http://redux.js.org/docs/recipes/reducers/NormalizingStateShape.html) (instead of placed directly into nested object). **THIS BREAKS v1.1.5 AND EARLIER IMPLEMENTATIONS OF POPULATE**. Now population will require the usage of `populatedDataToJS`. - `populatedDataToJS` function added to helpers (returns data populated from normalized state) - `profileDecorator` config option renamed to `profileFactory` for clarity (`profileDecorator` still supported, but will throw deprecation warning) - default file metadata written to database includes `downloadURL` instead of `downloadURLs` array - Meta values (`timestamp`, `requesting`, `requested`) are now stored by string key (keeps invalid keyPath error from showing up) - `enableRedirectHandling` config param added to enable/disable auth redirect handling (enabled by default, which can cause breakage in none HTTP/HTTPS environments) ## Enhancements - `once` queries no longer cause `off` error due to unmounting non existent listener (fixes prescottprue#36) - login with auth redirect no longer returns null and other redirect handling improvements (prescottprue#33) - deep set `invalid keyPath` error fixed in data section of reducer (deep list is null first then has value) - `fileMetadataFactory` config option added to allow control of metadata written to database when using `uploadFile` and `uploadFiles` - Profile Params Populate now working for both object and string notation - Config params type validation - Roadmap updated with `v2.0.0` plans - `profileDecorator` backwards compatibility is included (with a deprecation warning) - `CODE_OF_CONDUCT.md` and `PATRONS.md` added - Docs + Tests updated
Just an idea, for a function that might make it a lot easier to retrieve references from other objects. For example if you are restricting your todo list per user.
http://mongoosejs.com/docs/populate.html
It's super useful in the MongoDB space, I haven't really seen it in firebase libraries.
The text was updated successfully, but these errors were encountered: