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 558 forks source link

Customize how reducer stores data #1081

Open danielo515 opened 3 years ago

danielo515 commented 3 years ago

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

Feature

What is the current behavior?

Currently, the only options to customize how to store the values is by setting where the values should be stored and by specifying different query params, but nothing else

What is the expected behavior?

I will love to preprocess the data or post process the data to make different ways to index the data. For example, if I have a list of users I may want to index them by genre, but I don't want to make two queries (3 if I want a list with all) just to properly index them. According to redux guidelines, using indexes that reference other store parts is the best way of storing the data.