-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix MutationHandlers on field with args
Summary: This should fix #3457 The bug is in calling `record.getLinkedRecord(payload.fieldKey, payload.args)`. `getLinkedRecord` would append the serialized `args` to `fieldKey` as the final field name. However, `payload.fieldKey` already contains serialized arguments when it's populated using `getStorageKey` in `RelayRepsonseNormalizer`. We were duplicating the arguments in the field name. Removing the `payload.args` to `record.getLinkedRecord` fixes the issue. Reviewed By: voideanvalue Differential Revision: D37732466 fbshipit-source-id: 9fc5a46643e463f265633b8390998c01e2f70b36
- Loading branch information
1 parent
78b8f9c
commit cd1e9ae
Showing
4 changed files
with
424 additions
and
4 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
Oops, something went wrong.