this is ti

This commit is contained in:
ruban 2024-05-02 22:50:35 -07:00 committed by GitHub
parent 9cd3358e4e
commit 9d728ec3c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -95,6 +95,9 @@ export const useSyncStore = createPersistStore(
const provider = get().provider; const provider = get().provider;
const config = get()[provider]; const config = get()[provider];
const client = this.getClient(); const client = this.getClient();
console.log("client set", localState);
await client.set(config.username, JSON.stringify(localState));
try { try {
const remoteState = await client.get(config.username); const remoteState = await client.get(config.username);