From a76c3601ab71d3798493502e5e1bed3d86a57fb9 Mon Sep 17 00:00:00 2001 From: HausOfAlejandro Date: Mon, 15 Jul 2019 08:34:47 -0500 Subject: [PATCH] Update README.md The error is an Object, the React app will crash because "Invariant Violation: Objects are not valid as a React child" --- firestore/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firestore/README.md b/firestore/README.md index 77c5bea..46a502e 100644 --- a/firestore/README.md +++ b/firestore/README.md @@ -66,7 +66,7 @@ const FirestoreCollection = () => { return (

- {error && Error: {error}} + {error && Error: {JSON.stringify(error)}} {loading && Collection: Loading...} {value && ( @@ -182,7 +182,7 @@ const FirestoreDocument = () => { return (

- {error && Error: {error}} + {error && Error: {JSON.stringify(error)}} {loading && Document: Loading...} {value && Document: {JSON.stringify(value.data())}}