Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
유저정보를 서버에서 받아오고 라우팅을 막는 과정에서 문제가 있어서 서버에서 유저정보를 받아올때까지 isLoading을 통해 기다려주는 방식으로 일단 해결했습니다.
Checklist
Description
유저정보를 서버에서 받아오고 라우팅을 막는 과정에서 문제가 있어서 서버에서 유저정보를 받아올때까지 isLoading을 통해 기다려주는 방식으로 일단 해결했습니다.
Changes Made
client/src/contexts/AuthProvider.tsx
client/src/pages/UserBasedRoute.tsx
아직 UserBasedRoute를 통해 라우팅 될 때 유저가 무조건 host가 되는 문제는 해결하지 못했습니다.
Extra Comments