Skip to content

feat(query): warning for invalid query config parameters #138

Open
@gino-m

Description

Reposting prescottprue/react-redux-firebase#537 in the correct repo.

This turned out to be due to a call to firestore.update() where the path was referring to a collection rather than a doc. This occurred because the doc id was unintentionally null. i.e.

 props.firestore.update({ collection: "projects", doc: projectId }, {title: newTitle});

Where projectId was null.

Mainly posting here for posterity, though it would be great if we can catch and report this earlier and log an error instead. Thanks for considering this!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions