Replies: 1 comment 2 replies
-
By default, it uses It would be nice if docs cover this, including type checking. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using atomWithHash for saving state in url the key "all" is serialized as undefined.
I have the next config on a react project
`
const statusAtom = useWithHash("status", "open")
const Component = () => {
const [status, setStatus] = useAtom(statusAtom)
const handleKeyChange = (key) => {
}
return
}
`
Everything works great until "all" tab is selected for a strange reason when I click on "all" tab the URL encoding (serialization) return "undefined" but the state works fine "all" it just happend with the "all" word, if we change the key to "all-x" the url is updated correctly
When status is all
https://exampleurs/page#status=undefined
When status is all-x
https://exampleurs/page#status="all-x"
I think there is a internal conflict with the all word in jotai library
Beta Was this translation helpful? Give feedback.
All reactions