Skip to content

Conversation

@reakaleek
Copy link
Member

@reakaleek reakaleek commented Jul 3, 2025

Context

follow-up from #1505

Currently we are create a .nav.html file for every page that exists.
However, there are many duplicates as the navigation for sub pages are probably the same.

Changes

  • Only create a single .nav.html partial file for each cached navigation. This makes it possible to cache the navigation in browser.

@reakaleek reakaleek marked this pull request as ready for review July 3, 2025 19:51
@reakaleek reakaleek requested a review from a team as a code owner July 3, 2025 19:51
@reakaleek reakaleek self-assigned this Jul 7, 2025
public required string Id { get; init; }
}

public record EmptyNavigationRenderResult : INavigationRenderResult
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be a static property on OkNavigationRenderResult ?

e.g OkNavigationRenderResult.Empty then we can just have a single record NavigationRenderResult without an interface.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@reakaleek reakaleek requested a review from Mpdreamz July 7, 2025 11:08
@reakaleek reakaleek merged commit 2037f09 into main Jul 7, 2025
17 checks passed
@reakaleek reakaleek deleted the feature/optimize-nav-lazy-load branch July 7, 2025 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants