Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

Fix Store.load API - add required defaults parameter

Louis Beaumontb344144838bc
diff --git a/screenpipe-app-tauri/lib/hooks/use-settings.tsx b/screenpipe-app-tauri/lib/hooks/use-settings.tsx
index deaa3c743..1431622b8 100644
--- a/screenpipe-app-tauri/lib/hooks/use-settings.tsx
+++ b/screenpipe-app-tauri/lib/hooks/use-settings.tsx
@@ -184,6 +184,7 @@ export const getStore = async () => {
const dir = await localDataDir();
_store = Store.load(`${dir}/screenpipe/store.bin`, {
autoSave: false,
+ defaults: {},
});
}
return _store;