Skip to content

UserContext Hook #149

@timjacksonm

Description

@timjacksonm

The UserContext Hook currently sends an api endpoint request to /api/user/getuser when the navbar component mounts. This action produces an error in the console anytime a user is not logged in.

Solution:
Refactor the UserContext hook to only send the get api request when a user has successfully logged in.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions