Skip to content

dataReducer doesn't merge previous data on LISTENER_RESPONSE action. #294

Open
@unsouled

Description

What is the current behavior?
dataReducer doesn't merge previous data on LISTENER_RESPONSE action.

What is the expected behavior?
dataReducer should merge previous data on LISTENER_RESPONSE action when previous data is exist and meta does not have subcollections

Which version of redux-firestore are you using? What about other dependencies?
0.13.0

This commit(bab3aa5) breaks the action.

If intended, the above conditional code(

if (!previousData || meta.subcollections) {
) is meaningless code.

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions