MatrixRoomUtils

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

App.razor (763B)


      1 <Router AppAssembly="@typeof(App).Assembly">
      2     <Found Context="routeData">
      3         <RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)"/>
      4         <FocusOnNavigate RouteData="@routeData" Selector="h1"/>
      5     </Found>
      6     <NotFound>
      7         <PageTitle>Not found</PageTitle>
      8         <LayoutView Layout="@typeof(MainLayout)">
      9             <p role="alert">Sorry, there's nothing at this address.</p>
     10         </LayoutView>
     11     </NotFound>
     12 </Router>
     13 
     14 @code {
     15     protected override async Task OnInitializedAsync()
     16     {
     17         if (!RuntimeCache.WasLoaded)
     18         {
     19             await LocalStorageWrapper.LoadFromLocalStorage(LocalStorage);
     20             Console.WriteLine("Loaded from local storage");
     21             StateHasChanged();
     22         }
     23     }
     24 
     25 }