Skip to content

Commit

Permalink
Remove unneeded type cast
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Dec 18, 2024
1 parent 7e08d1d commit bb519b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/react/hooks/useSuspenseFragment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ function _useSuspenseFragment<
return { data: null };
}

if (current[0] !== fragmentRef!.key) {
if (current[0] !== fragmentRef.key) {
// eslint-disable-next-line react-compiler/react-compiler
current[0] = fragmentRef!.key;
current[1] = fragmentRef!.promise;
current[0] = fragmentRef.key;
current[1] = fragmentRef.promise;
}

const data = __use(current[1]);
Expand Down

0 comments on commit bb519b7

Please sign in to comment.