-
-
Notifications
You must be signed in to change notification settings - Fork 641
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
docs: fix bunshi example #2937
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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. |
Can @loganvolkers review this? |
commit: |
Preview in LiveCodesLatest commit: 846d342
See documentations for usage instructions. |
There was a problem hiding this 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!
@disjukr run fix:format. |
0c408b2
to
846d342
Compare
Oh, I thought I had run it, but I guess I was mistaken. I ran it again. |
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