Skip to content
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

Navigating between Views cause application Error #3002

Open
Tracked by #7057
ZheSun88 opened this issue Dec 13, 2024 · 1 comment · May be fixed by vaadin/flow#20770
Open
Tracked by #7057

Navigating between Views cause application Error #3002

ZheSun88 opened this issue Dec 13, 2024 · 1 comment · May be fixed by vaadin/flow#20770
Assignees
Labels
bug Something isn't working hilla Issues related to Hilla Impact: Low Severity: Major

Comments

@ZheSun88
Copy link
Contributor

Describe the bug

navigate between the flowView and flow-hilla-deep-tree cause the application failed with this error

image

Expected-behavior

app works

Reproduction

take platform project

  • ./scripts/generateBoms.sh --useSnapshots
  • mvn install -DskipTests -Preact-hybrid
  • cd vaadin-platform-react-hybrid-test
  • mvn spring-boot:run

System Info

it seems this issue can be reproduced easily on linux and windows instead of Mac
vaadin 24.6 and 24.7

@ZheSun88 ZheSun88 added bug Something isn't working hilla Issues related to Hilla labels Dec 13, 2024
@Lodin
Copy link
Contributor

Lodin commented Dec 17, 2024

So, I found that it is not a timing issue. For me, it almost always happen if I do the following steps:

  1. Open Chrome and open DevTools. Enable Pause on unhandled exceptions checkbox.
  2. Open vaadin-platform-react-hybrid-test application on https://localhost:8080.
  3. Click Flow button
  4. Open side menu and click (or just click if opened) Non root React in Flow button
  5. You'll see the error caught.

In this scenario the speed in unrelated.

platosha added a commit to vaadin/flow that referenced this issue Dec 20, 2024
Some routing cases in hybrid Flow layout + React view applications could produce DOM tree conflicts from Flow server-side changes and React client-side portal removal happening simultaneously. This could throw DOM `NotFoundError` in the browser. This change introduces a dedicated DOM element for React portal outlet, which allows to avoid the error.

Fixes vaadin/hilla#3002
platosha added a commit to vaadin/flow that referenced this issue Dec 20, 2024
Some routing cases in hybrid Flow layout + React view applications could produce DOM tree conflicts from Flow server-side changes and React client-side portal removal happening simultaneously. This could throw DOM `NotFoundError` in the browser. This change introduces a dedicated DOM element for React portal outlet, which allows to avoid the error.

Fixes vaadin/hilla#3002
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hilla Issues related to Hilla Impact: Low Severity: Major
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants