Skip to content

AB#716 Fix stop and route page tab flash on tab change - #6074

Merged
Antiik91 merged 5 commits into
v3from
AB#716
Oct 9, 2026
Merged

Antiik91 merged 5 commits into
v3from
AB#716

Conversation

@vesameskanen

@vesameskanen vesameskanen commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Tabs and content briefly disappeared on every tab click, because the tab routes returned null (or a loader) while their query was loading.

Stop and terminal pages

  • Added createStickyRenderer, which keeps rendering the last props for the same stop/terminal while the query reloads. For a different page or stop it returns null as before, so the previous page is not kept mounted.
  • Tab route variables now drop seconds from the dates, so clicks within a minute reuse cached data.

Route page

  • The header uses createStickyRenderer keyed by route id.
  • Stops, trip stops and timetable content use the new createStickyRendererFactory, keyed by route and pattern. The previous element stays visible while the next tab loads, so the tabs and pattern selector no longer disappear.
  • prepareServiceDay also drops seconds from the dates.

vesameskanen and others added 2 commits October 9, 2026 11:13
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Antiik91

Antiik91 commented Oct 9, 2026

Copy link
Copy Markdown
Member

Route page suffers this exact same issue, could you fix it as well in this PR?

@vesameskanen

Copy link
Copy Markdown
Member Author

good point - maybe it is as easy in route page as well. I will add it to this PR.

vesameskanen and others added 3 commits October 9, 2026 13:42
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@vesameskanen vesameskanen changed the title AB#716 Fix stop page tab flash on tab change AB#716 Fix stop and route page tab flash on tab change Oct 9, 2026
@Antiik91
Antiik91 merged commit 9deb0c5 into v3 Oct 9, 2026
9 checks passed
@Antiik91
Antiik91 deleted the AB#716 branch October 9, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants