Skip to content

Instantly share code, notes, and snippets.

@gagarin55
Created April 5, 2020 06:23
Show Gist options
  • Save gagarin55/634188e467727e51fcea185e51d6a940 to your computer and use it in GitHub Desktop.
Save gagarin55/634188e467727e51fcea185e51d6a940 to your computer and use it in GitHub Desktop.
No it's not.
In electron you can use a memory history instead of hash, yeah?
import {
createMemorySource,
createHistory,
LocationProvider
} from "@reach/router"
let source = createMemorySource("/starting/url")
let history = createHistory(source)
let App = () => (
<LocationProvider history={history}>
<Router>
{/* ... */}
</Router>
</LocationProvider>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment