Skip to content

Commit

Permalink
Update src/react/hooks/useFragment.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Jerel Miller <jerelmiller@gmail.com>
  • Loading branch information
phryneas and jerelmiller authored Sep 3, 2024
1 parent b24fb5e commit c3544f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react/hooks/useFragment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function _useFragment<TData = any, TVars = OperationVariables>(
// Since `next` is called async by zen-observable, we want to avoid
// unnecessarily rerendering this hook for the initial result
// emitted from watchFragment which should be equal to
// `currentDiff`.
// `diff.result`.
if (equal(result, diff.result)) return;
diff.result = result;
// If we get another update before we've re-rendered, bail out of
Expand Down

0 comments on commit c3544f7

Please sign in to comment.