- Notifications
You must be signed in to change notification settings - Fork1.9k
Commit677c1e3
Fix nullable refetchedFragmentRef in checkSameIDAfterRefetch (#4945)
Summary:I call useRefetchableFragment(), e.g. getSomethingById.The backend may return null ("Something" no longer exists).Then the queryData is `{node: null}`fragmentRefPathInResponse is `['node']`so fragmentRef (refetchedFragementRef) is `null`and the`var resultID = refetchedFragmentRef[ID_KEY]` throws `cannot read properties of null`.Pull Requestresolved:#4945Test Plan: Updated to add unit testsReviewed By: lynnshaoyuDifferential Revision: D73461930Pulled By: captbaritonefbshipit-source-id: a98089cdcad8c29e13106fbf4e4aba2e8dc8fafd1 parent91c22be commit677c1e3
File tree
3 files changed
+3278
-3239
lines changed- packages/react-relay/relay-hooks
- __tests__
- legacy
3 files changed
+3278
-3239
lines changed0 commit comments
Comments
(0)