From de27f36148fbf32147a7d815edf0a7cd03746c8c Mon Sep 17 00:00:00 2001 From: Yaroslav Gulnazaryan <43448610+frontend-sensei@users.noreply.github.com> Date: Mon, 25 Nov 2024 03:00:10 +0300 Subject: [PATCH] docs: change usersAdapter to artistAdapter (#763) * docs: change usersAdapter to artistAdapter * docs: fix incorrect adapter usage in multiple language docs --- .../current/guides/examples/types.md | 2 +- .../current/guides/examples/types.md | 4 ++-- .../current/guides/examples/types.md | 2 +- .../current/guides/examples/types.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/i18n/en/docusaurus-plugin-content-docs/current/guides/examples/types.md b/i18n/en/docusaurus-plugin-content-docs/current/guides/examples/types.md index cd6390be4..78e3748c6 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/guides/examples/types.md +++ b/i18n/en/docusaurus-plugin-content-docs/current/guides/examples/types.md @@ -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) }) }, }) diff --git a/i18n/ja/docusaurus-plugin-content-docs/current/guides/examples/types.md b/i18n/ja/docusaurus-plugin-content-docs/current/guides/examples/types.md index d0111f68b..e76320af1 100644 --- a/i18n/ja/docusaurus-plugin-content-docs/current/guides/examples/types.md +++ b/i18n/ja/docusaurus-plugin-content-docs/current/guides/examples/types.md @@ -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) }) }, }) @@ -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 \ No newline at end of file +[ext-ts-reset]: https://www.totaltypescript.com/ts-reset diff --git a/i18n/kr/docusaurus-plugin-content-docs/current/guides/examples/types.md b/i18n/kr/docusaurus-plugin-content-docs/current/guides/examples/types.md index 505f150c8..5b07e9106 100644 --- a/i18n/kr/docusaurus-plugin-content-docs/current/guides/examples/types.md +++ b/i18n/kr/docusaurus-plugin-content-docs/current/guides/examples/types.md @@ -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) }) }, }) diff --git a/i18n/ru/docusaurus-plugin-content-docs/current/guides/examples/types.md b/i18n/ru/docusaurus-plugin-content-docs/current/guides/examples/types.md index c00ae7fe9..5108e959e 100644 --- a/i18n/ru/docusaurus-plugin-content-docs/current/guides/examples/types.md +++ b/i18n/ru/docusaurus-plugin-content-docs/current/guides/examples/types.md @@ -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) }) }, })