S
SolidJS7mo ago
egg

Set default location state

Hi, I'm trying to have a default state object for all navigation using solid router. I tried using useBeforeLeave in a root component to overwrite the state but it seems that this feature is broken/unusable.
useBeforeLeave((e) => {
e.preventDefault()
e.retry(true)
})
useBeforeLeave((e) => {
e.preventDefault()
e.retry(true)
})
This alone will cause backwards navigation to totally not work.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server