Skip to content

Commit

Permalink
Test hash integration for client side routes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiah-carlson committed Sep 8, 2023
1 parent 36ad059 commit 29779b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/src/index.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* @refresh reload */
import { render } from 'solid-js/web';
import { Router, Route, Routes } from "@solidjs/router";
import { Router, Route, Routes, hashIntegration } from "@solidjs/router";

import './index.css';
import { Concert, Default } from './pages/Production';
Expand All @@ -14,7 +14,7 @@ if (import.meta.env.DEV && !(root instanceof HTMLElement)) {
}

render(() => (
<Router>
<Router source={hashIntegration()}>
<Routes>
<Route path="/" component={Default} />
<Route path="/concert/" component={Concert} />
Expand Down

0 comments on commit 29779b6

Please sign in to comment.