Skip to content

Commit

Permalink
Flow 0.34 (facebook#8259)
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiebits authored Nov 10, 2016
1 parent e612826 commit 67dcc58
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

[version]
^0.33.0
^0.34.0
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"eslint-plugin-react-internal": "file:eslint-rules",
"fbjs": "^0.8.5",
"fbjs-scripts": "^0.6.0",
"flow-bin": "^0.33.0",
"flow-bin": "^0.34.0",
"glob": "^6.0.1",
"grunt": "^0.4.5",
"grunt-cli": "^0.1.13",
Expand Down
7 changes: 3 additions & 4 deletions src/renderers/native/ReactNativeAttributePayload.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,18 +396,17 @@ function diffProperties(
removedKeyCount = 0;
// We think that attributeConfig is not CustomAttributeConfiguration at
// this point so we assume it must be AttributeConfiguration.
// $FlowFixMe
updatePayload = diffNestedProperty(
updatePayload,
prevProp,
nextProp,
attributeConfig
((attributeConfig : any) : AttributeConfiguration)
);
if (removedKeyCount > 0 && updatePayload) {
restoreDeletedValuesInNestedArray(
updatePayload,
nextProp,
attributeConfig
((attributeConfig : any) : AttributeConfiguration)
);
removedKeys = null;
}
Expand Down Expand Up @@ -457,7 +456,7 @@ function diffProperties(
updatePayload = clearNestedProperty(
updatePayload,
prevProp,
attributeConfig
((attributeConfig : any) : AttributeConfiguration)
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/renderers/shared/fiber/ReactFiber.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ function createFiberFromElementType(type : mixed, key : null | string) : Fiber {
// the current or a workInProgress? When the continuation gets rendered here
// we don't know if we can reuse that fiber or if we need to clone it.
// There is probably a clever way to restructure this.
fiber = type;
fiber = ((type : any) : Fiber);
} else {
throw new Error('Unknown component type: ' + typeof type);
}
Expand Down

0 comments on commit 67dcc58

Please sign in to comment.