Skip to content

Fix: leaving page alert on setup when finishing#58

Merged
andreutu merged 2 commits into
mainfrom
fix/setup-leave-page-alert
Jul 6, 2026
Merged

Fix: leaving page alert on setup when finishing#58
andreutu merged 2 commits into
mainfrom
fix/setup-leave-page-alert

Conversation

@Maximus7474

Copy link
Copy Markdown
Member

Description

The commit ( 2360b76 ) introduced showing the "leaving page alert" when the page got refreshed or when leaving.

This used a state to define if it should skip it or not, leading to it not being skipped because it was not a dependency of the effect, using a ref avoids needing to trigger a useless re-render of the page for it.


Tests

  • Tested in development mode
  • Passes typecheck
  • Builds & runs on Windows
  • Builds & runs on Linux

Additional Notes

@Maximus7474 Maximus7474 requested a review from andreutu July 6, 2026 16:22
@Maximus7474 Maximus7474 self-assigned this Jul 6, 2026
@Maximus7474 Maximus7474 added the bug Something isn't working label Jul 6, 2026
Comment thread apps/webpanel/src/pages/setup/index.tsx Outdated
Co-authored-by: andreutu <91362974+andreutu@users.noreply.github.com>
@andreutu andreutu self-requested a review July 6, 2026 17:52
@andreutu andreutu merged commit a09fe39 into main Jul 6, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: webpanel bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants