Skip to content

Commit

Permalink
docs: change usersAdapter to artistAdapter (#763)
Browse files Browse the repository at this point in the history
* docs: change usersAdapter to artistAdapter

* docs: fix incorrect adapter usage in multiple language docs
  • Loading branch information
frontend-sensei authored Nov 25, 2024
1 parent 645c569 commit de27f36
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) => {
// И здесь обрабатываем тот же ответ с бэкенда, добавляя исполнителей
usersAdapter.upsertMany(state, action.payload.users)
artistAdapter.upsertMany(state, action.payload.artists)
})
},
})
Expand Down

0 comments on commit de27f36

Please sign in to comment.