Open nguyenhoaikhang37 opened 1 year ago
Result: ✅
Some auth issues:
mutate
is basically telling SWR to update the request (e.g. refetching). Why are we calling mutate
before login? 🤔
I suggest using a UserContext
or AuthContext
where we put things like getMe, login, logout, etc. Just a pattern we'd like to use to manage auth stuff & have access to current user profile at a global level.
...
// Demo link https://df-frontend-2023-ass7.vercel.app/
// Any notes for reviewers If the code lacks clarify or if there are any issue with the application, please don't hesitate to provide feedback. I'm open to suggestions and eager to improve. Thanks a lot <3