Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Set default location state - SolidJS
S
SolidJS
โข
2y ago
geg
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
.
SolidJS
Join
Solid is a declarative reactive Javascript library for creating user interfaces.
12,274
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
How to set a store back to a default state at the top level (or clear it)?
S
SolidJS / support
3y ago