You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once I implemented the chapter: Email Verification I get the warning:
Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.
This warning is generated for the following router components:
I tried googling for answers and found this: https://stackoverflow.com/a/48458532/4400976 but I do not see how our HOC is being misused as a regular component as the answer is alluding to. It is the exact same pattern we are using for withAuthorization and withAuthentication; e.g. a declaration of HOC that embeds the argument Component by means of a closure and that we use for our compositions accordingly. But the warning would not come about then.
The text was updated successfully, but these errors were encountered:
Once I implemented the chapter:
Email Verification
I get the warning:This warning is generated for the following router components:
react-firebase-authentication/src/components/App/index.js
Lines 31 to 33 in 316a175
Their common denominator is that they all compose over the HOC:
withEmailVerification
. When I comment out:react-firebase-authentication/src/components/Home/index.js
Line 16 in 316a175
then the warning disappears.
I tried googling for answers and found this: https://stackoverflow.com/a/48458532/4400976 but I do not see how our HOC is being misused as a regular component as the answer is alluding to. It is the exact same pattern we are using for
withAuthorization
andwithAuthentication
; e.g. a declaration of HOC that embeds the argumentComponent
by means of a closure and that we use for our compositions accordingly. But the warning would not come about then.The text was updated successfully, but these errors were encountered: