Skip to content

[24.4] Navigating from a Flow view to a React view using UI.navigate is not working #18867

Closed

Description

@taefi

Description of the bug

When I try to navigate from a Flow view to a route associated with a React view using UI.getCurrent().navigate, it is not working. The target url is correctly set to the browser, but it seems that the React router is not reacting to the changed url:

Screen.Recording.2024-03-01.at.15.49.14.mov

Expected behavior

To be able to navigate from Flow views to React views and vice versa.

Minimal reproducible example

I used hilla-file-router-example as a base to add a React view with required param "id" (so it is not visible in the automatically populated menu) but it is registered with the route /person/:id (it can be verified by inspecting the value of Vaadin.server.views in the browser console).

My playground is shared in the taefi/navigate-from-flow-issue branch of the same repository.

Versions

  • Vaadin version: 24.4.0.alpha8

Activity

  1. taefi commented on Mar 1, 2024

    @taefi
    ContributorAuthor

    There is also some other weird issue happening after navigating from FlowView to AnotherFlowView. After the navigation successfully renders the target view, clicking on the FlowView in the menu will change the url to /flow correctly, but nothing happens. This may or may not be related to the original issue.

  2. moved this to 🔖 High Priority (P1) in Vaadin Flow bugs & maintenanceon Mar 4, 2024
  3. moved this from 🪵Product backlog to 🟢Ready to Go in Vaadin Flow | Hilla | Kits ongoing workon Mar 4, 2024
  4. self-assigned this
    on Mar 4, 2024
  5. added a commit that references this issue on Mar 4, 2024
    948aa89
  6. added a commit that references this issue on Mar 4, 2024
    5a18a22
  7. moved this from 🔖 High Priority (P1) to ✅ Closed in Vaadin Flow bugs & maintenanceon Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions