Replies: 1 comment
-
Hi! Nice idea, created #1012 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been doing some development with reatom, and figured we need a way to create a test ctx on a per-page basis.
We have some dev-routes with pages that need mocking - sort of like storybooks but at the same app code as the rest of the app.
It would also be fine to have a just more generic way to create and destroy the contexts, so that
useCreateCtx
doesn't invoke the thecreateCtx
itself but rather allows the user to do so.The second variant should work better as it does not have direct dependency on both
react
and a@reatom/testing
- which would make it quite puzzling where to place this code.Beta Was this translation helpful? Give feedback.
All reactions