Skip to content

Instantly share code, notes, and snippets.

@helielson
Created October 23, 2019 01:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save helielson/d5b56713b2603ac6bfdfc923b292e72f to your computer and use it in GitHub Desktop.
Save helielson/d5b56713b2603ac6bfdfc923b292e72f to your computer and use it in GitHub Desktop.
_traverse(node: NormalizationNode, dataID: DataID): void {
const status = this._mutator.getStatus(dataID);
if (status === UNKNOWN) {
this._handleMissing();
}
if (status === EXISTENT) {
this._traverseSelections(node.selections, dataID);
}
}
// https://github.com/facebook/relay/blob/a9f872411b82af4a4ae1018f22cc4bd8c12b62fb/packages/relay-runtime/store/DataChecker.js#L247-L255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment