0phois / MudBlazor.StaticInput

Blazor Component Library extension for MudBlazor. Focusing on input components for Static Server-Side Rendered pages
MIT License
18 stars 2 forks source link

[Fix] Only reload page if a static component exists #10

Closed Anu6is closed 2 months ago

Anu6is commented 2 months ago

Based on these discussions, a navigation observer script was added to reload static pages whenever navigation occurred to ensure that the javascript was correctly loaded. However, the script introduced the side effect of reloading pages that were not statically rendered and did not need to be reloaded.

This change ensures that static component exists on the page before calling reload.

Closes #9

github-actions[bot] commented 2 months ago

Test Results

33 tests  ±0   33 :white_check_mark: ±0   8s :stopwatch: -1s  1 suites ±0    0 :zzz: ±0   1 files   ±0    0 :x: ±0 

Results for commit e52fd029. ± Comparison against base commit 44022955.