Skip to content

[Feature]: background location modal with createBrowserRouter #9406

@ZachMayry

Description

@ZachMayry

What is the new or updated feature that you are suggesting?

Somehow add support for a background location with routes
At first glance I'm not understanding how this modal example would work with the new data routers.
https://github.com/remix-run/react-router/blob/dev/examples/modal/src/App.tsx#L56-L70
If this feature is supported, it would be nice to have the modal example updated

Why should this feature be included?

Allowing modal routes to be on top of background location routes is a feature our application is built on but we would like to use the new data loading features as well.
It would be nice to not have to choose data loading or background locations for modals.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestUsed to close PRs that haven't gone through/been accepted the Proposal process yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions