From c64bd2edd5f8e4b6f775c587292857a0d9f9d872 Mon Sep 17 00:00:00 2001 From: IH Jeon Date: Tue, 30 Jul 2024 12:17:08 +0900 Subject: [PATCH] docs: replace JSON.serialize() with JSON.stringify() in atom-effects guide --- docs/docs/guides/atom-effects.md | 2 +- .../current/guides/atom-effects.md | 2 +- .../current/guides/atom-effects.md | 2 +- .../current/guides/atom-effects.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/docs/guides/atom-effects.md b/docs/docs/guides/atom-effects.md index e4e79ae7e..b178edc11 100644 --- a/docs/docs/guides/atom-effects.md +++ b/docs/docs/guides/atom-effects.md @@ -139,7 +139,7 @@ const history: Array<{ const historyEffect = name => ({setSelf, onSet}) => { onSet((newValue, oldValue) => { history.push({ - label: `${name}: ${JSON.serialize(oldValue)} -> ${JSON.serialize(newValue)}`, + label: `${name}: ${JSON.stringify(oldValue)} -> ${JSON.stringify(newValue)}`, undo: () => { setSelf(oldValue); }, diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/guides/atom-effects.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/guides/atom-effects.md index c3bf87796..7a4264213 100644 --- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/guides/atom-effects.md +++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/guides/atom-effects.md @@ -133,7 +133,7 @@ const history: Array<{ const historyEffect = name => ({setSelf, onSet}) => { onSet((newValue, oldValue) => { history.push({ - label: `${name}: ${JSON.serialize(oldValue)} -> ${JSON.serialize(newValue)}`, + label: `${name}: ${JSON.stringify(oldValue)} -> ${JSON.stringify(newValue)}`, undo: () => { setSelf(oldValue); }, diff --git a/docs/i18n/ko/docusaurus-plugin-content-docs/current/guides/atom-effects.md b/docs/i18n/ko/docusaurus-plugin-content-docs/current/guides/atom-effects.md index ddc7ba623..b2e9fa75b 100644 --- a/docs/i18n/ko/docusaurus-plugin-content-docs/current/guides/atom-effects.md +++ b/docs/i18n/ko/docusaurus-plugin-content-docs/current/guides/atom-effects.md @@ -134,7 +134,7 @@ const history: Array<{ const historyEffect = name => ({setSelf, onSet}) => { onSet((newValue, oldValue) => { history.push({ - label: `${name}: ${JSON.serialize(oldValue)} -> ${JSON.serialize(newValue)}`, + label: `${name}: ${JSON.stringify(oldValue)} -> ${JSON.stringify(newValue)}`, undo: () => { setSelf(oldValue); }, diff --git a/docs/i18n/zh-hans/docusaurus-plugin-content-docs/current/guides/atom-effects.md b/docs/i18n/zh-hans/docusaurus-plugin-content-docs/current/guides/atom-effects.md index 2eaf685bb..95d0a182e 100644 --- a/docs/i18n/zh-hans/docusaurus-plugin-content-docs/current/guides/atom-effects.md +++ b/docs/i18n/zh-hans/docusaurus-plugin-content-docs/current/guides/atom-effects.md @@ -133,7 +133,7 @@ const history: Array<{ const historyEffect = name => ({setSelf, onSet}) => { onSet((newValue, oldValue) => { history.push({ - label: `${name}: ${JSON.serialize(oldValue)} -> ${JSON.serialize(newValue)}`, + label: `${name}: ${JSON.stringify(oldValue)} -> ${JSON.stringify(newValue)}`, undo: () => { setSelf(oldValue); },