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

Dialog is closing the first time after start when using hotswap #20680

Closed
mukherjeesudebi opened this issue Dec 11, 2024 · 1 comment · Fixed by #20684
Closed

Dialog is closing the first time after start when using hotswap #20680

mukherjeesudebi opened this issue Dec 11, 2024 · 1 comment · Fixed by #20684

Comments

@mukherjeesudebi
Copy link

Description of the bug

When using dialog in a starter application and when using hotswap agent , the dialog (opened from a button click) closes approximately at the time the hot reload happens. The loading indicator is visible when in slow network. This happens only the first time after start but not afterwards. Even refresh does not effect and things work fine.

The issue is replicable in vaadin 24.5.7 and 24.5.8 but not in 24.5.6

Tested in eclipse with JetBrains jbr17_0_1b164.4 and hotswap-agent-2.0.1

Expected behavior

The dialog should not close

Minimal reproducible example

Download a starter and add the basic dialog code from documentation.

Versions

  • Vaadin / Flow version: 24.5.7 , 24.5.8
mcollovati added a commit that referenced this issue Dec 12, 2024
Prevent hotswapper to trigger a refresh when the classes are loaded for the
first time. Refreshing a view should make sense only if a project class has
been modified. The only exception is auto layout classes, that must be
applied even if they are not directly references in the component tree.

Fixes #20680
Fixes #20681
@mshabarov mshabarov moved this from 🆕 Needs triage to 🔖 Normal Priority (P2) in Vaadin Flow bugs & maintenance (Vaadin 10+) Dec 17, 2024
@mshabarov mshabarov moved this to 🪵Product backlog in Vaadin Flow ongoing work (Vaadin 10+) Dec 17, 2024
@mshabarov mshabarov moved this from 🪵Product backlog to 🔎Iteration reviews in Vaadin Flow ongoing work (Vaadin 10+) Dec 17, 2024
@mshabarov mshabarov moved this from 🔖 Normal Priority (P2) to 🏗 WIP in Vaadin Flow bugs & maintenance (Vaadin 10+) Dec 17, 2024
@github-project-automation github-project-automation bot moved this from 🔎Iteration reviews to Done in Vaadin Flow ongoing work (Vaadin 10+) Dec 19, 2024
vaadin-bot pushed a commit that referenced this issue Dec 19, 2024
Prevent hotswapper to trigger a refresh when the classes are loaded for the
first time. Refreshing a view should make sense only if a project class has
been modified. The only exception is auto layout classes, that must be
applied even if they are not directly references in the component tree.

Fixes #20680
Fixes #20681
vaadin-bot pushed a commit that referenced this issue Dec 19, 2024
Prevent hotswapper to trigger a refresh when the classes are loaded for the
first time. Refreshing a view should make sense only if a project class has
been modified. The only exception is auto layout classes, that must be
applied even if they are not directly references in the component tree.

Fixes #20680
Fixes #20681
vaadin-bot added a commit that referenced this issue Dec 19, 2024
…20751)

Prevent hotswapper to trigger a refresh when the classes are loaded for the
first time. Refreshing a view should make sense only if a project class has
been modified. The only exception is auto layout classes, that must be
applied even if they are not directly references in the component tree.

Fixes #20680
Fixes #20681

Co-authored-by: Marco Collovati <[email protected]>
vaadin-bot added a commit that referenced this issue Dec 19, 2024
…20752)

Prevent hotswapper to trigger a refresh when the classes are loaded for the
first time. Refreshing a view should make sense only if a project class has
been modified. The only exception is auto layout classes, that must be
applied even if they are not directly references in the component tree.

Fixes #20680
Fixes #20681

Co-authored-by: Marco Collovati <[email protected]>
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.5.9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

3 participants