Skip to content

Commit

Permalink
タイムラインの挙動修正 (#411)
Browse files Browse the repository at this point in the history
## Issue

## 変更内容
- タイムライン更新した際の挙動を修正しました

@coderabbitai: ignore
  • Loading branch information
takecchi committed Apr 17, 2024
1 parent 74ba3c6 commit 04a6d24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libs/swr/timeline/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,13 +299,13 @@ const timeline = (<Data, Error, SWRKey extends Key = Key>(
// トリガーのリセット
setCache({ _trigger: undefined });

// キューの更新
await swrQueue.mutate();

// キャッシュの更新
const [keys, data] = await validateKeys(_keys, undefined);
setCache({ _keys: keys });

// キューの更新
await swrQueue.mutate();

return data;
},
config,
Expand Down

0 comments on commit 04a6d24

Please sign in to comment.