Questions tagged [blazor-state-management]

5 questions
2
votes
1 answer

Blazor server side SPA: Component state after reloading component

The problem is the following: I have a component which holds a table and some searchfields for the table. If I do a search and after that I go to another page and back to the table page, all values of the table component are resetted. Like the…
2
votes
1 answer

Blazor State Management - Factor out the state preservation to a common location

I'm trying to understand common location for state preservation from Blazor Official Doc. Should wrapping code be defined in separate razor component? How that component would refer currentCount variable? I have tried to define this into new…
Abhijeet
  • 13,562
  • 26
  • 94
  • 175
1
vote
0 answers

Failed to fetch dynamically imported module blazor-state.lib.module.js after changing app path

I need to change default application path of my blazor application, but its not starting due to problem with Blazor-State repro steps: I created a new blazor webassembly application and modified it as follows: in index.html I edited:
1
vote
1 answer

Blazor Server best practices about state management and routing

I have one page on a Blazor Server app that has multiple child components and I could get some input about best practices about handling different routes, and state management for a somewhat complex page/component. My page lookssimilar to the image…
0
votes
1 answer

Blazor state is FE or BE?

I would like to know if the saved state is FE or server side? I am using the following tutorial which works. https://learn.microsoft.com/en-us/aspnet/core/mvc/views/tag-helpers/built-in/persist-component-state?view=aspnetcore-7.0 I am trying to…