Skip to content

Commit b1b27c0

Browse files
authored
Update to flow 0.97 (#17892)
1 parent a427f93 commit b1b27c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ReactShallowRenderer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ function createHook(): Hook {
173173
}
174174

175175
function basicStateReducer<S>(state: S, action: BasicStateAction<S>): S {
176+
// $FlowFixMe: Flow doesn't like mixed types
176177
return typeof action === 'function' ? action(state) : action;
177178
}
178179

0 commit comments

Comments
 (0)