Skip to content

fix(react): Add support for React Router sub-routes from handle #17277

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

onurtemizkan
Copy link
Collaborator

Adds support for lazy loading sub-routes / components using the pattern below:

const routes [
  // ...
  {
    path: 'part1',
      handle: {
        lazyChildren: () =>
          import('./pages/SomeMoreNestedRoutes').then(
        (mod) => mod.someMoreNestedRoutes
      ),
    },
  },
]

@onurtemizkan onurtemizkan requested a review from chargome July 31, 2025 20:39
cursor[bot]

This comment was marked as outdated.

@onurtemizkan onurtemizkan marked this pull request as draft August 1, 2025 05:23
@onurtemizkan onurtemizkan force-pushed the onur/react-router-support-async-handle branch from 728fb60 to 244a953 Compare August 4, 2025 08:46
@onurtemizkan onurtemizkan marked this pull request as ready for review August 4, 2025 09:29
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@onurtemizkan onurtemizkan force-pushed the onur/react-router-support-async-handle branch from fea5834 to 06e535e Compare August 5, 2025 05:43
cursor[bot]

This comment was marked as outdated.

@onurtemizkan onurtemizkan force-pushed the onur/react-router-support-async-handle branch from 81c1bc5 to e968adf Compare August 5, 2025 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant