https://github.com/sql-mistermagoo/blazorpersist
Sample Blazor App demonstrating how to persist local data over browser refresh
https://github.com/sql-mistermagoo/blazorpersist
Last synced: 4 months ago
JSON representation
Sample Blazor App demonstrating how to persist local data over browser refresh
- Host: GitHub
- URL: https://github.com/sql-mistermagoo/blazorpersist
- Owner: SQL-MisterMagoo
- License: mit
- Created: 2018-12-25T12:31:19.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2020-06-15T16:17:51.000Z (about 6 years ago)
- Last Synced: 2025-10-24T03:22:53.501Z (8 months ago)
- Language: HTML
- Size: 218 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## BlazorPersist
This sample demonstrates a method for persisting data over browser refreshes, with optional expiration.
Try clicking the counters and refreshing and/or closing the browser.
The click counts should persist.
The single Counter has a 1 minute cache timeout.
The double Counter has a 10 minute cache timeout.
Try adding/removing users from the list - they should persist refreshes/closes with no timeout.
Try typing in the input box - it updates the label live on each keystroke and persists browser refreshes.
Look at the local storage in Dev Tools (F12) to see the data.
None of the data stored leaves the browser - there is no server side to this app - the data is yours.
[Source on Github](https://github.com/SQL-MisterMagoo/BlazorPersist)