Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit 9c31a5a

Browse files
committed
missing ns.optional for forwardRef
1 parent 4bab87d commit 9c31a5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/reactjs_jsx_ppx_v4.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,8 @@ let transformComponentDefinition nestedModules mapper structure returnStructures
10641064
@
10651065
if hasForwardRef then
10661066
[
1067-
(Location.mknoloc (Lident "ref"), Pat.var (Location.mknoloc "ref"));
1067+
( Location.mknoloc (Lident "ref"),
1068+
Pat.var ~attrs:optionalAttr (Location.mknoloc "ref") );
10681069
]
10691070
else []
10701071
in

0 commit comments

Comments
 (0)