Skip to content

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

Open
@shethhriday29

Description

@shethhriday29

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions