Composable atom utils #2587
-
Hi! For example, having both withImmer and withHash, to allow doing something like:
What do you think? Also, is there documentation about how to create our own atom utilities? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Yes, withFoo would be nice. It's currently a limitation of the API. We'll investigate further to design some new API to allow such a pattern. It will take time! |
Beta Was this translation helpful? Give feedback.
-
Not a doc, but you might find this useful: https://blog.axlight.com/posts/jotai-tips/ |
Beta Was this translation helpful? Give feedback.
Yes, withFoo would be nice. It's currently a limitation of the API. We'll investigate further to design some new API to allow such a pattern. It will take time!