Skip to content
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

StoreAs behaves differently than normal query (without StoreAs)? #1087

Open
shethhriday29 opened this issue Apr 29, 2021 · 0 comments
Open

Comments

@shethhriday29
Copy link

This is for the Firebase realtime database, btw.

Does using StoreAs in a firebaseConnect() query make the data load differently than just doing a normal query?

For example:

let's say I query '/comments' and then also ( '/comments' but storeAs: '/comments'), the data will load faster the latter way. Specifically, on the initial isLoaded for the former, only old data (previously in the Redux store) will be there, but in the former, the initial isLoaded will include all the new data as well.

Also, componentDidUpdate happens faster with the StoreAs.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant