Skip to content

[Bug]: Element from routes inside a DataBrowserRouter not reacting to changes (state, hot reload) #9225

@diogomartino

Description

@diogomartino

What version of React Router are you using?

6.4.0-pre.14

Steps to Reproduce

  1. Use DataBrowserRouter
  2. Add a Route with something that is not a component, like div, h1, etc. as an element.
  3. Change the content of the element by literally editing the file or adding some kind of state to it.

Reproduce it here

Expected Behavior

The element should rerender on a hot reload or on a state change...?

Actually I'm not sure if this is the expected behaviour or not, I can't find any mentions to it in the docs that says this will happen when using this kind of router.

Actual Behavior

Element does not rerender.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions