Context Not Being Defined
I am running into a problem where the
AuthContext isn't being defined in m app.
Here's my App component:
For convenience, here is my <mAIN /> component:
Essentially, the error being thrown is Uncaught TypeError: Cannot read properties of null, referring to the auth check being done by the authenticated() signal, defined in the AuthContext context.
Here is the slimmed down version of my AuthContext:
In my logs, I know that AuthContext is not being defined because the print statement defined in it is never shown.
How would I fix this?1 Reply
Figured it out. Wass something wrong with one of the functions in my AuthContext().