Skip to content

Commit de27f36

Browse files
docs: change usersAdapter to artistAdapter (feature-sliced#763)
* docs: change usersAdapter to artistAdapter * docs: fix incorrect adapter usage in multiple language docs
1 parent 645c569 commit de27f36

File tree

4 files changed

+5
-5
lines changed
  • i18n
    • en/docusaurus-plugin-content-docs/current/guides/examples
    • ja/docusaurus-plugin-content-docs/current/guides/examples
    • kr/docusaurus-plugin-content-docs/current/guides/examples
    • ru/docusaurus-plugin-content-docs/current/guides/examples

4 files changed

+5
-5
lines changed

i18n/en/docusaurus-plugin-content-docs/current/guides/examples/types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ export const slice = createSlice({
305305
extraReducers: (builder) => {
306306
builder.addCase(fetchSong.fulfilled, (state, action) => {
307307
// And handle the same fetch result by inserting the artists here
308-
usersAdapter.upsertMany(state, action.payload.users)
308+
artistAdapter.upsertMany(state, action.payload.artists)
309309
})
310310
},
311311
})

i18n/ja/docusaurus-plugin-content-docs/current/guides/examples/types.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ export const slice = createSlice({
309309
extraReducers: (builder) => {
310310
builder.addCase(fetchSong.fulfilled, (state, action) => {
311311
// ここでバックエンドからの同じレスポンスを処理し、ユーザーを追加します
312-
usersAdapter.upsertMany(state, action.payload.users)
312+
artistAdapter.upsertMany(state, action.payload.artists)
313313
})
314314
},
315315
})
@@ -433,4 +433,4 @@ declare module "use-react-screenshot";
433433
[ext-type-fest]: https://github.com/sindresorhus/type-fest
434434
[ext-zod]: https://zod.dev
435435
[ext-vite]: https://vitejs.dev
436-
[ext-ts-reset]: https://www.totaltypescript.com/ts-reset
436+
[ext-ts-reset]: https://www.totaltypescript.com/ts-reset

i18n/kr/docusaurus-plugin-content-docs/current/guides/examples/types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ export const slice = createSlice({
308308
extraReducers: (builder) => {
309309
builder.addCase(fetchSong.fulfilled, (state, action) => {
310310
// 같은 fetch 결과를 처리하며, 여기서 artists를 삽입합니다.
311-
usersAdapter.upsertMany(state, action.payload.users)
311+
artistAdapter.upsertMany(state, action.payload.artists)
312312
})
313313
},
314314
})

i18n/ru/docusaurus-plugin-content-docs/current/guides/examples/types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ export const slice = createSlice({
307307
extraReducers: (builder) => {
308308
builder.addCase(fetchSong.fulfilled, (state, action) => {
309309
// И здесь обрабатываем тот же ответ с бэкенда, добавляя исполнителей
310-
usersAdapter.upsertMany(state, action.payload.users)
310+
artistAdapter.upsertMany(state, action.payload.artists)
311311
})
312312
},
313313
})

0 commit comments

Comments
 (0)