pmndrs / valtio

🧙 Valtio makes proxy-state simple for React and Vanilla
https://valtio.dev
MIT License
8.84k stars 248 forks source link

docs(useSnapshot): Clarify parent/child useSnapshot usage. #676

Closed stephenh closed 1 year ago

stephenh commented 1 year ago

Related Issues or Discussions

Potentially clarifies behavior discussion from #673.

Summary

Documents the snap.books.map(book, i) approach that @dai-shi mentioned is current best practice for passing stores to children.

Check List

vercel[bot] commented 1 year ago

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

Name Status Preview Comments Updated
valtio ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 24, 2023 at 2:28AM (UTC)
codesandbox-ci[bot] commented 1 year ago

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.

Latest deployment of this branch, based on commit 304979ce624599f372a96cd4721781438d0284fb:

Sandbox Source
React Configuration
React Typescript Configuration
React Browserify Configuration
React Snowpack Configuration
React Parcel Configuration