Skip to content
This repository has been archived by the owner on Dec 7, 2024. It is now read-only.

MSW 실행 지연 문제 #54

Open
chanwoo00106 opened this issue Feb 16, 2023 · 0 comments
Open

MSW 실행 지연 문제 #54

chanwoo00106 opened this issue Feb 16, 2023 · 0 comments
Labels
🐞 Bug 버그 발생

Comments

@chanwoo00106
Copy link
Member

Describe

클라에서 msw가 실행되는게 useEffect 보다 늦어서 api 요청이 실패해 버리는 문제가 발생했습니다
때문에 api 요청 직전에 await initMock()을 해줘야 합니다
아마 useFetch hook에 해주면 금방 해결 될 것이라고 생각합니다

Additional

No response

@chanwoo00106 chanwoo00106 added the 🐞 Bug 버그 발생 label Feb 16, 2023
@chanwoo00106 chanwoo00106 self-assigned this Feb 17, 2023
@chanwoo00106 chanwoo00106 removed their assignment Feb 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 Bug 버그 발생
Projects
None yet
Development

No branches or pull requests

1 participant