Update instructions/oqtane.instructions.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
d334b26dc1
commit
db3d171e2b
@ -62,7 +62,7 @@ applyTo: '**/*.razor, **/*.razor.cs, **/*.razor.css'
|
|||||||
## State Management Libraries
|
## State Management Libraries
|
||||||
|
|
||||||
- Use Blazor's built-in Cascading Parameters and EventCallbacks for basic state sharing across components.
|
- Use Blazor's built-in Cascading Parameters and EventCallbacks for basic state sharing across components.
|
||||||
- use built-in Oqtane state management in the base classes like PageSate and SiteState when appripriate.
|
- use built-in Oqtane state management in the base classes like PageState and SiteState when appropriate.
|
||||||
- Avoid adding extra depenencies like Fluxor or BlazorState when the application grows in complexity.
|
- Avoid adding extra depenencies like Fluxor or BlazorState when the application grows in complexity.
|
||||||
- For client-side state persistence in Blazor WebAssembly, consider using Blazored.LocalStorage or Blazored.SessionStorage to maintain state between page reloads.
|
- For client-side state persistence in Blazor WebAssembly, consider using Blazored.LocalStorage or Blazored.SessionStorage to maintain state between page reloads.
|
||||||
- For server-side Blazor, use Scoped Services and the StateContainer pattern to manage state within user sessions while minimizing re-renders.
|
- For server-side Blazor, use Scoped Services and the StateContainer pattern to manage state within user sessions while minimizing re-renders.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user