diff --git a/README.md b/README.md
index e233c12..5e72b0f 100644
--- a/README.md
+++ b/README.md
@@ -15,11 +15,6 @@ protected async override Task OnInitAsync()
}
```
-## Note about the sample project
-
-The Todo page does not work fully. The TodoForm that allows you to edit an item or add a new item is not working correctly. The OnInitAsync in the
-child component is not firing. However, since BlazorDB itself it working, I decided to publish the version and figure out the Sample app afterwards.
-
## Docs
### Install
diff --git a/src/BlazorDB/BlazorDB.csproj b/src/BlazorDB/BlazorDB.csproj
index 01a1673..67900db 100644
--- a/src/BlazorDB/BlazorDB.csproj
+++ b/src/BlazorDB/BlazorDB.csproj
@@ -7,7 +7,7 @@
false7.3BlazorDB
- 0.7.0
+ 0.7.1Chanan Braunstein
Blazor localStorage DatabaseIn memory, persisted to localstorage, database for .net Blazor browser framework
diff --git a/src/BlazorDB/StorageContext.cs b/src/BlazorDB/StorageContext.cs
index 52b31f4..a007362 100644
--- a/src/BlazorDB/StorageContext.cs
+++ b/src/BlazorDB/StorageContext.cs
@@ -6,6 +6,7 @@ namespace BlazorDB
public class StorageContext : IStorageContext
{
protected IStorageManager StorageManager { get; set; }
+ private bool _initalized = false;
public async Task LogToConsole()
{
await Logger.StartContextType(GetType(), false);
@@ -26,6 +27,8 @@ public Task SaveChanges()
public Task Initialize()
{
+ if (_initalized) return Task.CompletedTask;
+ _initalized = true;
return StorageManager.LoadContextFromLocalStorage(this);
}
}
diff --git a/src/Sample/Pages/TodoItemForm.cshtml b/src/Sample/Pages/TodoItemForm.cshtml
index 76c6b36..08f3eec 100644
--- a/src/Sample/Pages/TodoItemForm.cshtml
+++ b/src/Sample/Pages/TodoItemForm.cshtml
@@ -21,7 +21,7 @@