Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix bunshi example #2937

Merged
merged 1 commit into from
Jan 16, 2025
Merged

docs: fix bunshi example #2937

merged 1 commit into from
Jan 16, 2025

Conversation

disjukr
Copy link
Contributor

@disjukr disjukr commented Jan 15, 2025

Summary

The scope of bunshi is not divided based on the provider in the render tree but rather based on the value of the provider, so using initialCount as the value of the scope is not appropriate.

If multiple providers provide the same initialCount, they will share the same scope.

Therefore, I have modified the example code to wrap the initialCount once so that it gets a different reference.

Check List

  • pnpm run fix:format for formatting code and docs

Copy link

vercel bot commented Jan 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
jotai ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 16, 2025 0:47am

Copy link

codesandbox-ci bot commented Jan 15, 2025

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.

@dai-shi
Copy link
Member

dai-shi commented Jan 15, 2025

Can @loganvolkers review this?

Copy link

pkg-pr-new bot commented Jan 15, 2025

Open in Stackblitz

More templates

npm i https://pkg.pr.new/jotai@2937

commit: 846d342

Copy link

github-actions bot commented Jan 15, 2025

LiveCodes Preview in LiveCodes

Latest commit: 846d342
Last updated: Jan 16, 2025 12:47am (UTC)

Playground Link
React demo https://livecodes.io?x=id/677NR53MR

See documentations for usage instructions.

Copy link

@loganvolkers loganvolkers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good explanation, looks good to me!

@dai-shi
Copy link
Member

dai-shi commented Jan 15, 2025

  • pnpm run fix:format for formatting code and docs

@disjukr run fix:format.

@disjukr
Copy link
Contributor Author

disjukr commented Jan 16, 2025

@disjukr run fix:format.

Oh, I thought I had run it, but I guess I was mistaken. I ran it again.

@dai-shi dai-shi merged commit 45feab1 into pmndrs:main Jan 16, 2025
44 checks passed
@disjukr disjukr deleted the bunshi-example branch January 16, 2025 04:03
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.

3 participants