[fix] tauri store async fn
This commit is contained in:
@@ -19,7 +19,7 @@ interface AppAction {
|
||||
}
|
||||
|
||||
const STORE_NAME = "app"
|
||||
const { /* store, */ storage } = tauriStore(STORE_NAME)
|
||||
const { /* store, */ storage } = await tauriStore(STORE_NAME)
|
||||
|
||||
const useAppStore = create<AppState & AppAction>()(
|
||||
persist(
|
||||
|
||||
@@ -31,7 +31,7 @@ interface SteamAction {
|
||||
}
|
||||
|
||||
const STORE_NAME = "steam"
|
||||
const { /* store, */ storage } = tauriStore(STORE_NAME)
|
||||
const { /* store, */ storage } = await tauriStore(STORE_NAME)
|
||||
|
||||
const useSteamStore = create<SteamState & SteamAction>()(
|
||||
persist(
|
||||
|
||||
@@ -16,7 +16,7 @@ interface ToolAction {
|
||||
}
|
||||
|
||||
const STORE_NAME = "tool"
|
||||
const { /* store, */ storage } = tauriStore(STORE_NAME)
|
||||
const { /* store, */ storage } = await tauriStore(STORE_NAME)
|
||||
|
||||
const useToolStore = create<ToolState & ToolAction>()(
|
||||
persist(
|
||||
|
||||
Reference in New Issue
Block a user