jotai + deno + fresh + preact #2040
Unanswered
lveillard
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I saw some discussions about this, and it took me a while to make them work. Also there are some weird little bugs, but it works!
Update deno.json imports:
And then you can define your atoms in files:
And use them in preact components like this:
Some key things to consider:
Some bugs i've encountered
Something happens here that escapes my pay grade
Also when this error happens, all the atoms stop working, so if your atoms are not working, check your console ;)
Other than that, you can define your atoms in other files and it seems to properly work.
Beta Was this translation helpful? Give feedback.
All reactions