Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: a2ce9e1 made it so callbacks may be called synchronously (if the data is cached). In such a case, `onCompleted`, `onNext` and `onError` within `ReactRelayPaginationContainer` and `ReactRelayRefetchContainer` can be called before `environment.streamQuery` returns. The code currently hinges on `this._pendingRefetch` being set before the callbacks execute. This commit makes it so we don't rely on that anymore! Reviewed By: yuzhi Differential Revision: D5484321 fbshipit-source-id: 1b0eadfae814e852ef29e9bf7e683ff5226cb898
- Loading branch information
1 parent
ec29583
commit 2ffb5c6
Showing
5 changed files
with
190 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.