Path: redb/redb.Templates/templates/redb-identity-app/RedbIdentityApp.Web/Components/Pages/Notes.razor Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Templates/templates/redb-identity-app/RedbIdentityApp.Web/Components/Pages/Notes.razor ---- @page "/notes" @attribute [Authorize] @inject ModuleClient Module Notes

My notes

@foreach (var note in notes) { }
TitleTextCreated
@note.Title @note.Text @note.CreatedAt.ToLocalTime().ToString("g")
@code { private List notes = []; private NoteDto draft = new(); private Exception? error; protected override Task OnInitializedAsync() => RunAsync(LoadAsync); private Task AddAsync() => RunAsync(async () => { await Module.AddNoteAsync(draft); draft = new(); await LoadAsync(); }); private Task DeleteAsync(long id) => RunAsync(async () => { await Module.DeleteNoteAsync(id); await LoadAsync(); }); private async Task LoadAsync() => notes = await Module.NotesAsync(); private async Task RunAsync(Func call) { error = null; try { await call(); } catch (Exception ex) when (ex is SessionEndedException or IdentityUnavailableException or ModuleException) { error = ex; } } }