Skip to content

Commit

Permalink
docs: fix incorrect adapter usage in multiple language docs
Browse files Browse the repository at this point in the history
  • Loading branch information
frontend-sensei committed Nov 22, 2024
1 parent b082ac0 commit ecb4f17
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export const slice = createSlice({
extraReducers: (builder) => {
builder.addCase(fetchSong.fulfilled, (state, action) => {
// And handle the same fetch result by inserting the artists here
usersAdapter.upsertMany(state, action.payload.users)
artistAdapter.upsertMany(state, action.payload.artists)
})
},
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ export const slice = createSlice({
extraReducers: (builder) => {
builder.addCase(fetchSong.fulfilled, (state, action) => {
// ここでバックエンドからの同じレスポンスを処理し、ユーザーを追加します
usersAdapter.upsertMany(state, action.payload.users)
artistAdapter.upsertMany(state, action.payload.artists)
})
},
})
Expand Down Expand Up @@ -433,4 +433,4 @@ declare module "use-react-screenshot";
[ext-type-fest]: https://github.com/sindresorhus/type-fest
[ext-zod]: https://zod.dev
[ext-vite]: https://vitejs.dev
[ext-ts-reset]: https://www.totaltypescript.com/ts-reset
[ext-ts-reset]: https://www.totaltypescript.com/ts-reset
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export const slice = createSlice({
extraReducers: (builder) => {
builder.addCase(fetchSong.fulfilled, (state, action) => {
// 같은 fetch 결과를 처리하며, 여기서 artists를 삽입합니다.
usersAdapter.upsertMany(state, action.payload.users)
artistAdapter.upsertMany(state, action.payload.artists)
})
},
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ export const slice = createSlice({
extraReducers: (builder) => {
builder.addCase(fetchSong.fulfilled, (state, action) => {
// И здесь обрабатываем тот же ответ с бэкенда, добавляя исполнителей
artistAdapter.upsertMany(state, action.payload.users)
artistAdapter.upsertMany(state, action.payload.artists)
})
},
})
Expand Down

0 comments on commit ecb4f17

Please sign in to comment.