Skip to content

Commit

Permalink
fix: refetch transition (#737)
Browse files Browse the repository at this point in the history
close #735
  • Loading branch information
dai-shi authored Jun 5, 2024
1 parent d315ceb commit 6aac634
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/waku/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ export const Root = ({
// clear cache entry before fetching
delete fetchCache[ENTRY];
const data = fetchRSC(input, searchParams?.toString() || '', fetchCache);
setElements((prev) => mergeElements(prev, data));
startTransition(() => {
setElements((prev) => mergeElements(prev, data));
});
},
[fetchCache],
);
Expand Down

0 comments on commit 6aac634

Please sign in to comment.