Skip to content

FirestoreDocument is returning data from an id that doesn't exist #62

@tammyhart

Description

@tammyhart
  • react-firestore version: 0.8.1 (from getfirefly.org)
  • node version: 12.13.1
  • npm (or yarn) version: 6.13.6

Relevant code or config

<FirestoreDocument path={`posts/${match.params.id}`}>

What you did: Query a document with an id that doesn't exist.

What happened:

Instead of getting an error (necessary for displaying a 404), it just returns the data with the id I provided it.
Screen Shot 2020-06-29 at 5 33 12 PM

Suggested solution: Provide an error when the document isn't found.

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