You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -265,12 +267,12 @@ type ReactComponentAttribute(?exportDefault: bool, ?import: string, ?from:string
265
267
None
266
268
)
267
269
268
-
matchdefinedInThisFilewith
270
+
matchdefinedInThisFileAndIsUpperCasewith
269
271
| Some recordTypeName ->
270
272
leterrorMsg= String.concat ""[
271
273
sprintf "Function component '%s' is using a record type '%s' as an input parameter. " decl.Name recordTypeName
272
274
"This happens to break React tooling like react-refresh and hot module reloading. "
273
-
"To fix this issue, consider using an anonymous record instead or multiple simpler values as input parameters (can be tupled). "
275
+
"To fix this issue, consider using instead: a lowercased record type, an anonymous record or multiple simpler values as input parameters (can be tupled). "
274
276
"Future versions of [<ReactComponent>] might not emit this warning anymore, in which case you can assume that the issue is fixed. "
275
277
"To learn more about the issue, see https://github.com/pmmmwh/react-refresh-webpack-plugin/issues/258"
0 commit comments