Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit 7205587

Browse files
noahlemenbvaughn
authored andcommitted
add getPromise call to access removed then method of Deferred (#1130)
The `then` method of `Deferred` was removed (see D9308668 internally) -- the `RelayMutationRequest` (extending `Deferred`) `request` now must call `getPromise()` to access the underlying Promise methods note that this change to fbjs/Deferred has not yet been synced to Github, so this only occurs internally -- was reported in T33316897
1 parent 6f6f5ae commit 7205587

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/Relay/installRelayHook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function installRelayHook(window: Object) {
7575
requestNumber: number,
7676
) {
7777
var id = Math.random().toString(16).substr(2);
78-
request.then(
78+
request.getPromise().then(
7979
response => {
8080
emit('relay:success', {
8181
id: id,

0 commit comments

Comments
 (0)