From 67371154ed060adc97dfae63aeb301e607ef2e38 Mon Sep 17 00:00:00 2001 From: Loco <89942527+locothedev@users.noreply.github.com> Date: Mon, 10 Feb 2025 12:53:49 +0100 Subject: [PATCH] Update use-shallow.md (#3004) --- docs/hooks/use-shallow.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/hooks/use-shallow.md b/docs/hooks/use-shallow.md index 82c2016b7d..050eb2c97a 100644 --- a/docs/hooks/use-shallow.md +++ b/docs/hooks/use-shallow.md @@ -90,7 +90,7 @@ function UpdateBabyBearMeal() { useEffect(() => { const timer = setInterval(() => { useBearFamilyMealsStore.setState({ - tinyBear: meals[Math.floor(Math.random() * (meals.length - 1))], + babyBear: meals[Math.floor(Math.random() * (meals.length - 1))], }) }, 1000) @@ -109,7 +109,7 @@ Finally, we combine both components in the `App` component to see them in action export default function App() { return ( <> - + ) @@ -149,7 +149,7 @@ function UpdateBabyBearMeal() { useEffect(() => { const timer = setInterval(() => { useBearFamilyMealsStore.setState({ - tinyBear: meals[Math.floor(Math.random() * (meals.length - 1))], + babyBear: meals[Math.floor(Math.random() * (meals.length - 1))], }) }, 1000) @@ -226,7 +226,7 @@ function UpdateBabyBearMeal() { useEffect(() => { const timer = setInterval(() => { useBearFamilyMealsStore.setState({ - tinyBear: meals[Math.floor(Math.random() * (meals.length - 1))], + babyBear: meals[Math.floor(Math.random() * (meals.length - 1))], }) }, 1000)