Skip to content

Commit

Permalink
Use specific selector of index for getting an owner
Browse files Browse the repository at this point in the history
  • Loading branch information
XiNiHa committed Dec 11, 2024
1 parent 4a56298 commit 70f047e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/relay-runtime/store/observeFragmentExperimental.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function observePluralSelector<
snapshotToFragmentState(
environment,
fragmentNode,
fragmentSelector.selectors[0].owner,
fragmentSelector.selectors[index].owner,
snapshot,
),
);
Expand All @@ -199,7 +199,7 @@ function observePluralSelector<
states[index] = snapshotToFragmentState(
environment,
fragmentNode,
fragmentSelector.selectors[0].owner,
fragmentSelector.selectors[index].owner,
latestSnapshot,
);
sink.next((mergeFragmentStates(states): $FlowFixMe));
Expand Down

0 comments on commit 70f047e

Please sign in to comment.