소스 검색

this is ti

ruban 1 년 전
부모
커밋
9d728ec3c5
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      app/store/sync.ts

+ 3 - 0
app/store/sync.ts

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