about summary refs log tree commit diff
path: root/MatrixRoomUtils.Web/_Imports.razor
blob: 155837b49ee5c64d9e5703d60ce2730872d924da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@using System.Net.Http
@using System.Net.Http.Json
@using Blazored.LocalStorage
@using MatrixRoomUtils.Core
@using Microsoft.AspNetCore.Components.Forms
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using Microsoft.AspNetCore.Components.Web.Virtualization
@using Microsoft.AspNetCore.Components.WebAssembly.Http
@using Microsoft.JSInterop
@using MatrixRoomUtils.Web
@using MatrixRoomUtils.Web.Classes
@using MatrixRoomUtils.Web.Shared
@using MatrixRoomUtils.Core.RoomTypes
@using MatrixRoomUtils.Core.Extensions

@using LinkButton = MatrixRoomUtils.Web.Shared.SimpleComponents.LinkButton



@inject ILocalStorageService LocalStorage
@inject NavigationManager NavigationManager

@code
{
    protected override async Task OnInitializedAsync() {
        if (!RuntimeCache.WasLoaded) {
            await LocalStorageWrapper.LoadFromLocalStorage(LocalStorage);
            Console.WriteLine("Loaded from local storage");
            StateHasChanged();
        }
    }
}