Skip to content

Commit 6d4bad6

Browse files
committed
Upgrade Flow to 0.145.0
https://github.com/facebook/flow/releases/tag/v0.145.0 Fixes the following error: Cannot create PartialDateInput element because boolean literal true [1] is incompatible with boolean literal false [2] in property uncontrolled. [incompatible-type] root/components/FormRowPartialDate.js [1] 55│ uncontrolled = false, : 61│ label={label} 62│ required={required} 63│ /> 64│ <PartialDateInput 65│ disabled={disabled} 66│ dispatch={dispatch} 67│ field={field} root/components/PartialDateInput.js [2] 34│ +uncontrolled?: false, This seems to have been because of the presence of `dispatch`.
1 parent 6c9836f commit 6d4bad6

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"eslint-plugin-react": "7.20.6",
8282
"eslint-plugin-react-hooks": "4.1.2",
8383
"file-url": "2.0.2",
84-
"flow-bin": "0.144.0",
84+
"flow-bin": "0.145.0",
8585
"gettext-parser": "3.1.0",
8686
"http-proxy": "1.18.1",
8787
"jsdom": "13.2.0",

root/components/FormRowPartialDate.js

-5
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,9 @@ export const runReducer = runPartialDateInputReducer;
4747
const FormRowPartialDate = ({
4848
children,
4949
disabled = false,
50-
// $FlowIssue[prop-missing]
51-
dispatch,
5250
field,
5351
label,
5452
required = false,
55-
uncontrolled = false,
5653
...inputProps
5754
}: Props): React.Element<typeof FormRow> => (
5855
<FormRow>
@@ -63,9 +60,7 @@ const FormRowPartialDate = ({
6360
/>
6461
<PartialDateInput
6562
disabled={disabled}
66-
dispatch={dispatch}
6763
field={field}
68-
uncontrolled={uncontrolled}
6964
{...inputProps}
7065
/>
7166
{children}

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -3265,10 +3265,10 @@ flatted@^2.0.0:
32653265
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138"
32663266
integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==
32673267

3268-
flow-bin@0.144.0:
3269-
version "0.144.0"
3270-
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.144.0.tgz#32fbeb94ef39cb8b9fa03d67b6f085042ce3a1bd"
3271-
integrity sha512-+TeTukkfRjimaNhOHt8iQ/M33Fg8Afrm+iBHS19XzAz2fH4GwgroKCrAxDHnZoAUnmRv6jm/XngFxADlcqwYkw==
3268+
flow-bin@0.145.0:
3269+
version "0.145.0"
3270+
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.145.0.tgz#922f7c3568caaa5eb64621ec536deb56b24d1795"
3271+
integrity sha512-+9fi9BMxRBtSWC1x0hWggWTb8Vih+AC7wyvLAX5wR1m6u2lF2HLtixXqy2GX8bWgaynSEJR5lmPxYYC4wMI8cA==
32723272

32733273
flush-write-stream@^1.0.0:
32743274
version "1.1.1"

0 commit comments

Comments
 (0)