From 2587214212792cb51c6cac521e461a6f92be4989 Mon Sep 17 00:00:00 2001 From: Michael Sweeney Date: Sun, 15 Sep 2024 22:52:15 -0700 Subject: [PATCH] fix(docs): changed cloneDeep to deepClone (#951) * changed cloneDeep to deepClone * fixed typo --- docs/how-tos/how-to-reset-state.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/how-tos/how-to-reset-state.mdx b/docs/how-tos/how-to-reset-state.mdx index ae7db0de..f7f421c6 100644 --- a/docs/how-tos/how-to-reset-state.mdx +++ b/docs/how-tos/how-to-reset-state.mdx @@ -19,7 +19,7 @@ const initialObj = { const state = proxy(deepClone(initialObj)) const reset = () => { - const resetObj = deepCLone(initialObj) + const resetObj = deepClone(initialObj) Object.keys(resetObj).forEach((key) => { state[key] = resetObj[key] }) @@ -34,7 +34,7 @@ Alternatively, you can store the object in another object, which make the reset const state = proxy({ obj: initialObj }) const reset = () => { - state.obj = cloneDeep(initialObj) + state.obj = deepClone(initialObj) } ```