Skip to content

Conversation

rodja
Copy link
Member

@rodja rodja commented Oct 2, 2025

Motivation

If just some data changed (like setting another translation or similar), it is tricky to refresh ui.sub_pages. They will not react to ui.navigate_to(ui.context.client.sub_pages_router.current_path) because the path does not change and hence the re-evaluation is skipped.

Implementation

This PR introduces refresh methods for ui.sub_pages and ui.context.client.sub_pages_router. The first only refreshes itself and all nested sub pages elements. And the latter one refreshes all currently shown sub pages elements.

Progress

  • I chose a meaningful title that completes the sentence: "If applied, this PR will..."
  • The implementation is complete.
  • Pytests have been added.
  • Documentation has been added.
  • Update "Added in version ..."

@rodja rodja added this to the 3.x milestone Oct 2, 2025
@rodja rodja requested a review from falkoschindler October 2, 2025 04:31
@rodja rodja added the feature Type/scope: New feature or enhancement label Oct 2, 2025
@rodja rodja changed the base branch from main to 3.0 October 2, 2025 04:31
Base automatically changed from 3.0 to main October 3, 2025 15:14
@falkoschindler falkoschindler modified the milestones: 3.x, 3.1 Oct 4, 2025
@falkoschindler falkoschindler added the review Status: PR is open and needs review label Oct 4, 2025
@falkoschindler falkoschindler merged commit e311012 into main Oct 15, 2025
7 checks passed
@falkoschindler falkoschindler deleted the sub-pages-refresh branch October 15, 2025 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Type/scope: New feature or enhancement review Status: PR is open and needs review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants