LocalStorage
Fluxor
Our great sponsors
LocalStorage | Fluxor | |
---|---|---|
13 | 18 | |
1,136 | 1,173 | |
3.7% | - | |
3.7 | 8.0 | |
about 2 months ago | 9 days ago | |
C# | C# | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
LocalStorage
-
Is there any way to link Blazor Webassembly PWA to an SQL database? if so how?
if its like less than 30 items u can just use https://github.com/Blazored/LocalStorage
-
Confused about security in Blazor Web Assembly App
You store the token in local storage. This is a library that will give you access to that. Blazored
-
Nightclub Website
Blazored LocalStorage - for Tokens and Authentication Stuff
-
Github
The library make use of Blazored LocalStorage for storing cache data.
-
WASM -> MAUI with a shared project
I use a library called Blazored LocalStorage for the WASM project to store client side data like preferences and auth stuff. This, it seems, is not supported in MAUI. Although MAUI starts a web server, it does not store data in the 'browser'. Instead it uses an API called "Preferences" (Which is a pretty sweet interface, props MS) but now I find myself struggling how I can use one, or the other depending on the project.
- Microsoft.JSInterop.JSDisconnectedException
-
Where do you store your jwt on the client?
I've built a few Blazor WASM apps and use Blazored LocalStorage to access it.
-
Announcing .NET Community Toolkit v8.0.0 Preview 1
For Blazor, you need to either use a third-party library to set up INPC, or do this yourself. I do the latter. For example, I have a settings class. I use https://github.com/blazored/LocalStorage to store the settings in the browser, and set them up as a singleton.
-
How to store client side data in a Blazor WASM app in 2021?
If you only need key/value, I've been using this one. https://github.com/Blazored/LocalStorage
- Pre-fetch data for next page
Fluxor
-
Modeling collections in UI?
Take a look at Fluxor! Might be a little bit of a learning curve at first, but you will see how much it reduces the headache in these cases.
- Multiple loading states
-
help: replacing a component dynamically
Ive been using fluxor in my blazor projects. I love it. https://github.com/mrpmorris/Fluxor
-
How are you doing reactivity?
Check out https://github.com/mrpmorris/Fluxor which is an implementation of the react pattern for blazor, similar to redux. If you are used to the concepts of actions and reducers it should be pretty easy for you to get going.
- Simpler alternative to Fluxor
-
Anyone also using MVVM for their Blazor apps?
There's a ViewModelComponent where T : IViewModel This ViewModel has to be a state object, meaning part of Fluxor.
-
Blazor WASM state management
Look into using some nuget like Blazor-State or Fluxor to achieve this?
-
Re-render child component
You will probably need to implement a shared state that both components can utilize as their model. This is the type of scenario that Fluxor is designed for. (Not a recommendation, just a reference)
-
Trackor - a Blazor WebAssembly PWA using EFCore and SQLite in the browser
Application state using the Flux pattern with the Fluxor library
-
Sending Large amount of data (json) over a bad connection
Another thing you might like based on your username, lol - I'm using Fluxor in one of my projects and it's pretty good. You'd still foreach loop though your list of items, but create an async "fetch data" request for all your items waiting in a queue to be processed. And you can just add observers when parts of your data are loaded. Makes it pretty easy to fetch batches of data
What are some alternatives?
MudBlazor - Blazor Component Library based on Material design with an emphasis on ease of use. Mainly written in C# with Javascript kept to a bare minimum it empowers .NET developers to easily debug it if needed.
blazor-state - A Blazor State management library by TimeWarp.
ASP.NET Core - ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
redux - A JS library for predictable global state management
Blazor.IndexedDB.Framework - A framework for blazor which acts as an interface to IndexedDB
Blazor.IndexedDB - A Blazor library for accessing IndexedDB
fluxor-persist - Fluxor-persist is a library to persist Fluxor states.
ant-design-blazor - 🌈A set of enterprise-class UI components based on Ant Design and Blazor WebAssembly.
Toast - A JavaScript free toast library for Blazor and Razor Component applications
Modal - A powerful and customizable modal implementation for Blazor applications.
blazor-fluxor