Skip to content
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

react-router-dom의 loader에서 호출하는 API를 MSW가 잡지 못하는 현상 #5

Closed
ggsno opened this issue Feb 8, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ggsno
Copy link
Owner

ggsno commented Feb 8, 2024

No description provided.

@ggsno ggsno added the bug Something isn't working label Feb 8, 2024
@ggsno ggsno self-assigned this Feb 8, 2024
@ggsno
Copy link
Owner Author

ggsno commented Feb 8, 2024

mswjs/msw#1653 (comment)

MSW 초기화 이전에 browserRouter를 import 하면 loader 패칭이 MSW보다 빨라서 비정상 작동

loader를 설정하는 browserRouter를 MSW 초기화 이후에 만들어야 함

ggsno added a commit that referenced this issue Feb 8, 2024
- brouserRouter 생성 이전에 MSW 초기화하도록 변경
- 홈으로 가는 해더 컴포넌트 추가
- POST, PUT wiki의 mock API 작성
@ggsno ggsno closed this as completed Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant