Passing State between different routes

Do you think this is a good idea to pass data between different pages using solid router.


class SessionStore {
navigate_filter?: string
}


export default new SessionStore()

,

So before navigate('/dashboard'), I do SessionStore.navigate_filter = 'hello', then read the state in dashboard page, how cool is that?
Was this page helpful?