1
0
Fork 0

[react] fix: Use replaceState in hash. See #216

This commit is contained in:
joostdecock 2025-04-06 16:54:37 +02:00 committed by Joost De Cock
parent dbf49fd8ff
commit 48cdfef5f6

View file

@ -8,7 +8,7 @@ import { useMemo, useEffect } from 'react'
/*
* Set up the atom
*/
const urlAtom = atomWithHash('s', {})
const urlAtom = atomWithHash('s', { setHash: 'replaceState' })
/**
* Url state backend