jotaijs / jotai-scope

MIT License
55 stars 4 forks source link

how to get value of the different scope atom outside the scope #23

Closed HananoshikaYomaru closed 5 months ago

HananoshikaYomaru commented 6 months ago

let say I am creating a list of of something. Each thing has a scope. In the parent I want to access all the atom value.

is it possible? And if it is not, what do you recommend in that use case?

yf-yang commented 6 months ago

Sorry, I cannot get your point clearly. Would you like to share a simple example? You can use https://codesandbox.io/s/react-new as a starter.

Sounds like atoms in atom trick can work, but I still need clearer descriptions. The point is, atom itself is a config that can be shared between components. References: