Skip to content

fix: only disable initial load if restore URL triggers a query parameter change#16575

Open
Sumitsh28 wants to merge 1 commit into
kestra-io:developfrom
Sumitsh28:develop
Open

fix: only disable initial load if restore URL triggers a query parameter change#16575
Sumitsh28 wants to merge 1 commit into
kestra-io:developfrom
Sumitsh28:develop

Conversation

@Sumitsh28

Copy link
Copy Markdown
Contributor

✨ Description

This PR fixes a bug in useRestoreUrl.ts that caused list pages (such as Triggers) to hang indefinitely with a loading spinner when navigating to them.

Previously, if a user's sessionStorage contained an "empty" filter state (e.g., {"q": ""} or {"labels": []}), useRestoreUrl would eagerly abort the initial data fetch. However, because the restored state didn't actually require a URL change, the expected route update never occurred, leaving the data table stuck waiting for a signal that would never arrive. Refreshing the page wouldn't fix it because sessionStorage survives reloads.

🔗 Related Issue

Closes #16073

🎨 Frontend Checklist

  • Code builds without errors (npm run build)
  • All existing E2E tests pass (npm run test:e2e)
  • Screenshots or video recordings attached showing the UI changes

…ter change

Signed-off-by: Sumit Shandillya <sumit.off28@gmail.com>
@github-project-automation github-project-automation Bot moved this to To review in Pull Requests Jun 5, 2026
@MilosPaunovic MilosPaunovic requested a review from elevatebart June 5, 2026 09:25
@MilosPaunovic MilosPaunovic added area/frontend Needs frontend code changes kind/external Pull requests raised by community contributors labels Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/frontend Needs frontend code changes kind/external Pull requests raised by community contributors

Projects

Status: To review

Development

Successfully merging this pull request may close these issues.

[Triggers] Triggers page sometimes does not load and stays loading indefinitely

2 participants