Changelog: https://github.com/oedotme/generouted/compare/v1.19.5...v1.19.6
Published by oedotme 5 months ago
Changelog: https://github.com/oedotme/generouted/compare/v1.19.4...v1.19.5
Published by oedotme 6 months ago
Changelog: https://github.com/oedotme/generouted/compare/v1.19.3...v1.19.4
Published by oedotme 7 months ago
Changelog: https://github.com/oedotme/generouted/compare/v1.19.2...v1.19.3
Published by oedotme 7 months ago
Changelog: https://github.com/oedotme/generouted/compare/v1.19.1...v1.19.2
Published by oedotme 7 months ago
Changelog: https://github.com/oedotme/generouted/compare/v1.19.0...v1.19.1
Published by oedotme 7 months ago
Modals
export is now removed from the following integrations:
@generouted/react-router
@generouted/react-router/lazy
@generouted/solid-router
@generouted/solid-router/lazy
<Modals />
component is now included internally within the <Routes />
component by defaultThis export was usually used at the highest available layout route src/pages/_app.tsx
(as it requires the router context) but it was causing initialization/circular errors as the _app.tsx
file is imported by the file that exports Modals
component. This is reproducible by triggering HMR updates when _app.tsx
is modified. Also in some cases it cause kind of infinite revalidation triggered by this error.
-import { Modals } from '@generouted/react-router'
-import { Modals } from '@generouted/react-router/lazy'
-import { Modals } from '@generouted/solid-router'
-import { Modals } from '@generouted/solid-router/lazy'
export default function App() {
return (
<section>
<main>...</main>
- <Modals />
</section>
)
}
Changelog: https://github.com/oedotme/generouted/compare/v1.18.8...v1.19.0
Published by oedotme 7 months ago
Changelog: https://github.com/oedotme/generouted/compare/v1.18.7...v1.18.8
Published by oedotme 7 months ago
Changelog: https://github.com/oedotme/generouted/compare/v1.18.6...v1.18.7
Published by oedotme 7 months ago
Changelog: https://github.com/oedotme/generouted/compare/v1.18.5...v1.18.6
Published by oedotme 8 months ago
Changelog: https://github.com/oedotme/generouted/compare/v1.18.4...v1.18.5
Published by oedotme 8 months ago
Changelog: https://github.com/oedotme/generouted/compare/v1.18.3...v1.18.4
Published by oedotme 8 months ago
Changelog: https://github.com/oedotme/generouted/compare/v1.18.2...v1.18.3
Published by oedotme 9 months ago
Changelog: https://github.com/oedotme/generouted/compare/v1.18.1...v1.18.2
Published by oedotme 9 months ago
Changelog: https://github.com/oedotme/generouted/compare/v1.18.0...v1.18.1
Published by oedotme 9 months ago
.mdx
routes 9653cf7 by @oedotme closes #144Changelog: https://github.com/oedotme/generouted/compare/v1.17.1...v1.18.0
Published by oedotme 11 months ago
Changelog: https://github.com/oedotme/generouted/compare/v1.17.0...v1.17.1
Published by oedotme 11 months ago
@generouted/solid-router
v1.17.0
now requires using @solidjs/router
v0.10.1
<Outlet />
component was removed from @solidjs/router
, you'll need to use {props.children}
instead// src/pages/_app.tsx
// import { Outlet } from '@solidjs/router'
import { ParentProps, Show } from 'solid-js'
export default function App(props: ParentProps) {
// return <main><Outlet /></main>
return <main>{props.children}</main>
}
// src/pages/posts/_layout.tsx
// import { Outlet } from '@solidjs/router'
import { ParentProps, Show } from 'solid-js'
export default function PostsLayout(props: ParentProps) {
// return <section><Outlet /></section>
return <section>{props.children}</section>
}
Changelog: https://github.com/oedotme/generouted/compare/v1.16.1...v1.17.0
Published by oedotme about 1 year ago
Changelog: https://github.com/oedotme/generouted/compare/v1.16.0...v1.16.1
Published by oedotme about 1 year ago
Breaking change for splat routes for @generouted/react-router
and @generouted/solid-router
.
For example /pages/posts/[...all].tsx
: /posts/*
:
/posts/*
type instead of /posts/${string}
Link
, useNavigate
, etc params
props<Link to="/posts/catch-all">Catch-all</Link>
<Link to="/posts/*" params={{ '*': 'catch-all' }}>Catch-all</Link>
In general, this change allows accessing both dynamic and splat params from the type-safe useParams
hook.
Thanks @d0whc3r!
Changelog: https://github.com/oedotme/generouted/compare/v1.15.9...v1.16.0