Skip to content

docs: update hook name from useStore to useBear#3233

Merged
dai-shi merged 1 commit intopmndrs:mainfrom
ugouhar:patch-2
Sep 12, 2025
Merged

docs: update hook name from useStore to useBear#3233
dai-shi merged 1 commit intopmndrs:mainfrom
ugouhar:patch-2

Conversation

@ugouhar
Copy link
Copy Markdown
Contributor

@ugouhar ugouhar commented Sep 11, 2025

Zustand already provides a useStore hook, and reusing the same name for a custom hook could lead to confusion if someone accidentally imports the wrong one. To avoid this, I’ve renamed the custom hook to useBear. The name is short, memorable, and aligns with Zustand’s playful style.

Related Bug Reports or Discussions

Fixes #

Summary

Check List

  • pnpm run fix for formatting and linting code and docs

Zustand already provides a `useStore` hook, and reusing the same name for a custom hook could lead to confusion if someone accidentally imports the wrong one. To avoid this, I’ve renamed the custom hook to `useBear`. The name is short, memorable, and aligns with Zustand’s playful style.
@codesandbox-ci
Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Sep 11, 2025

demostarter

npm i https://pkg.pr.new/zustand@3233

commit: 764cb7a

@vercel
Copy link
Copy Markdown

vercel bot commented Sep 11, 2025

@ugouhar is attempting to deploy a commit to the Poimandres Team on Vercel.

A member of the Team first needs to authorize it.

@ugouhar ugouhar changed the title Update hook name from useStore to useBear docs: update hook name from useStore to useBear Sep 11, 2025
@dai-shi
Copy link
Copy Markdown
Member

dai-shi commented Sep 11, 2025

@ugouhar is attempting to deploy a commit to the Poimandres Team on Vercel.

A member of the Team first needs to authorize it.

@abernier please.

@vercel
Copy link
Copy Markdown

vercel bot commented Sep 12, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
zustand-demo Ready Ready Preview Comment Sep 12, 2025 7:54am

@abernier
Copy link
Copy Markdown
Member

@ugouhar is attempting to deploy a commit to the Poimandres Team on Vercel.
A member of the Team first needs to authorize it.

@abernier please.

✅ done, but i wont be able to authorize them all in the future, we have to find a solution 🤔

@dai-shi
Copy link
Copy Markdown
Member

dai-shi commented Sep 12, 2025

@ugouhar is attempting to deploy a commit to the Poimandres Team on Vercel.
A member of the Team first needs to authorize it.

@abernier please.

✅ done, but i wont be able to authorize them all in the future, we have to find a solution 🤔

In my case, I gave up the protection.

image

as my project doesn't have Environment Variables, nor OIDC Federation is enabled.

@dai-shi dai-shi merged commit 56a39b6 into pmndrs:main Sep 12, 2025
32 checks passed
@abernier
Copy link
Copy Markdown
Member

IMG_2141 IMG_2142

ok fork protection is now disabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants