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

createApi 구조에 대하여 . . . #31

Open
o-bard-o opened this issue Oct 16, 2023 · 0 comments
Open

createApi 구조에 대하여 . . . #31

o-bard-o opened this issue Oct 16, 2023 · 0 comments

Comments

@o-bard-o
Copy link
Member

createApi를 쓰는 기본적인 방법은 slice 처럼 각각을 새로운 slice로 만드는 방식이 아닌, 동일한 베이스 주소에 대해서 endpoint를 injectEndpoint 와 같은 함수를 통해 주입하여 모든 api 쿼리가 결론적으로 하나의 slice 안에 있어야 합니다.

마치 저희가 configStore.ts에서 다른 slice들을 묶어 하나의 store로 내보내는 것처럼요.

결과물 제출 이후에 제가 이 부분에 대한 수정을 하면서 첫 페이지 /version_info api를 적용하면 될 것 같습니다.

고생 많으셨습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant