Skip to content

Releases: oedotme/generouted

v1.15.3

04 Aug 09:56
v1.15.3
38d9480
Compare
Choose a tag to compare

Commits

Changelog: v1.15.2...v1.15.3

v1.15.2

23 Jul 10:08
v1.15.2
7b5e897
Compare
Choose a tag to compare

Commits

Changelog: v1.15.1...v1.15.2

v1.15.1

06 Jul 16:36
v1.15.1
890c3ce
Compare
Choose a tag to compare

Commits

Changelog: v1.15.0...v1.15.1

v1.15.0

01 Jul 13:24
v1.15.0
ff94bb7
Compare
Choose a tag to compare

Changes

Introduce route-based and app-level Pending component as a Suspense fallback for both @generouted/react-router and @generouted/solid-router

export const Pending = () => <div>Loading...</div>

Breaking change 🚨

For @generouted/solid-router, now the routes tree/object has the src/pages/_app.tsx as the root route and all the routes render as children like the current implement for @generouted/react-router.

You need to make two changes only at src/pages/_app.tsx for this new update:

  • Render an <Outlet /> component from @solidjs/router instead of {props.children}
  • Render the <Modals /> component explicitly, it was included previously at the exported <Routes /> component
// src/pages/_app.tsx

import { Outlet } from '@solidjs/router'
import { Modals } from '@generouted/solid-router'

import { useModals } from '../router'

export default function App() {
  const modals = useModals()

  return (
    <section>
      <header>
        <nav>...</nav>
        <button onClick={() => modals.open('/login')}>Open modal</button>
      </header>

      <main>
        <Outlet />
      </main>

      <Modals />
    </section>
  )
}

Commits

Changelog: v1.14.0...v1.15.0

v1.14.0

30 Jun 09:46
v1.14.0
75fc902
Compare
Choose a tag to compare

Changes

You can now export an app level error boundary Catch component from src/pages/_app.tsx with the following integrations:

  • @generouted/react-router, @generouted/react-router/lazy
// src/pages/_app.tsx

export const Catch = () => <div>...</div>
  • @generouted/solid-router, @generouted/solid-router/lazy
// src/pages/_app.tsx

export const Catch = (props: { error: Error; reset: () => void }) => <div>...</div>

Breaking changes 🚨

If you're using the generatePreservedRoutes directly from the core functions or through a custom integration you should now access the default export explicitly:

const preservedRoutes = generatePreservedRoutes(PRESERVED)

-const App = preservedRoutes?.['_app'] || Outlet
-const NotFound = preservedRoutes?.['404'] || Fragment
+const App = preservedRoutes?.['_app']?.default || Outlet
+const NotFound = preservedRoutes?.['404']?.default || Fragment

Commits

Changelog: v1.13.7...v1.14.0

v1.13.7

29 Jun 17:45
v1.13.7
53013b7
Compare
Choose a tag to compare

Changes

  • Setup issue template
  • Updated docs structure, content and conventions example
  • Add file-based Catch component with error boundary for Solid integrations
export const Catch = (props: { error: Error; reset: () => void }) => <div>...</div>

Commits

Changelog: v1.13.6...v1.13.7

v1.13.6

20 Jun 08:56
v1.13.6
b15cff5
Compare
Choose a tag to compare

Commits

Changelog: v1.13.5...v1.13.6

v1.13.5

20 Jun 07:41
v1.13.5
0aedada
Compare
Choose a tag to compare

Commits

Changelog: v1.13.4...v1.13.5

v1.13.4

17 Jun 22:02
v1.13.4
a104cc8
Compare
Choose a tag to compare

Commits

  • fix: forward search and hash to react-router link and navigate (#95) ebbb47f by @az33zy

Changelog: v1.13.3...v1.13.4

v1.13.3

13 Jun 13:19
v1.13.3
0a926f5
Compare
Choose a tag to compare

Commits

Changelog: v1.13.2...v1.13.3