Skip to content

Commit

Permalink
RSC: No need to pass location to Router anymore (#10905)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe authored Jul 2, 2024
1 parent 02f65d9 commit 4bdc2b3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions __fixtures__/test-project-rsa/web/src/Routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import { Router } from '@redwoodjs/vite/Router'
import NavigationLayout from './layouts/NavigationLayout/NavigationLayout'
import NotFoundPage from './pages/NotFoundPage/NotFoundPage'

const Routes = ({ location }: { location?: any }) => {
const Routes = () => {
return (
<Router location={location}>
<Router>
<Set wrap={NavigationLayout}>
<Route path="/" page={HomePage} name="home" />
<Route path="/about" page={AboutPage} name="about" />
Expand Down
4 changes: 2 additions & 2 deletions __fixtures__/test-project-rsc-kitchen-sink/web/src/Routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import { Router } from '@redwoodjs/vite/Router'
import NavigationLayout from './layouts/NavigationLayout/NavigationLayout'
import ScaffoldLayout from './layouts/ScaffoldLayout/ScaffoldLayout'

const Routes = ({ location }: { location?: any }) => {
const Routes = () => {
return (
<Router location={location}>
<Router>
<Set wrap={NavigationLayout} rnd={0.7}>
<Route path="/" page={HomePage} name="home" />
<Route path="/about" page={AboutPage} name="about" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ import { Router } from '@redwoodjs/vite/Router'
import NavigationLayout from 'src/layouts/NavigationLayout'
import NotFoundPage from 'src/pages/NotFoundPage'

const Routes = ({ location }: { location?: any }) => {
const Routes = () => {
return (
<Router location={location}>
<Router>
<Set wrap={NavigationLayout}>
<Route path="/" page={HomePage} name="home" />
<Route path="/about" page={AboutPage} name="about" />
Expand Down

0 comments on commit 4bdc2b3

Please sign in to comment.