From efaf416de46e351543866c4b24c416a7c15c60e5 Mon Sep 17 00:00:00 2001 From: HoberMin <102784200+HoberMin@users.noreply.github.com> Date: Mon, 6 Jan 2025 21:14:27 +0900 Subject: [PATCH] docs(create.md): fix state selector syntax in troubleshooting example (#2938) --- docs/apis/create.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/apis/create.md b/docs/apis/create.md index a426df2382..e634b1eb29 100644 --- a/docs/apis/create.md +++ b/docs/apis/create.md @@ -449,8 +449,8 @@ const usePersonStore = create()((set) => ({ })) export default function Form() { - const person = usePersonStore((state) => person) - const setPerson = usePersonStore((state) => setPerson) + const person = usePersonStore((state) => state) + const setPerson = usePersonStore((state) => state.setPerson) function handleFirstNameChange(e: ChangeEvent) { person.firstName = e.target.value