v1.19.0
Breaking Changes 🚨
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 default
This 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>
)
}
Commits
- feat!: remove modals export to fix circular and initialization errors 741a5e8 by @oedotme
- chore: update packages 3d75bdd by @oedotme
Changelog: v1.18.8...v1.19.0