-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Isolate authentication logic #48
Comments
Hi, will it be okay if I achieve this with redux toolkit? |
We don't want to go into the redux domain yet. |
I think instead of context we should use a custom hook. |
Looks good, I'll assign you then🚀 |
pokhrelanmol
added a commit
to pokhrelanmol/dharmik-opesource-blog
that referenced
this issue
Aug 17, 2022
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
we have our auth logic inside the app.jsx and that's fine for the small project but if we want to scale, then I think we need to isolate the auth logic and set loggedIn user in a global user context so we can refer to it anywhere without worrying about prop drilling issue.
The text was updated successfully, but these errors were encountered: