Skip to content

Commit

Permalink
Add useSuspenseFragment to hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Feb 10, 2025
1 parent c01a77b commit 9b0fbaa
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ export const hookWrappers: HookWrappers = {
return orig_useQueryRefHandlers(useWrapTransportedQueryRef(queryRef));
}, []);
},
useSuspenseFragment(orig_useSuspenseFragment) {
return wrap(orig_useSuspenseFragment, ["data"]);
},
};

function wrap<T extends (...args: any[]) => any>(
Expand Down

0 comments on commit 9b0fbaa

Please sign in to comment.