Skip to content

v1.19.0

Compare
Choose a tag to compare
@oedotme oedotme released this 11 Apr 08:24
· 24 commits to main since this release
v1.19.0
4cf79bd

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

Changelog: v1.18.8...v1.19.0