Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"rescript": "^11.0.0"
},
"peerDependencies": {
"react": ">=19.0.0",
"react-dom": ">=19.0.0"
"react": ">=19.1.0",
"react-dom": ">=19.1.0"
}
}
}
3 changes: 3 additions & 0 deletions src/React.res
Original file line number Diff line number Diff line change
Expand Up @@ -451,3 +451,6 @@ external useOptimistic: (
/** `act` is a test helper to apply pending React updates before making assertions. */
@module("react")
external act: (unit => promise<unit>) => promise<unit> = "act"

@module("react")
external captureOwnerStack: unit => Js.nullable<string> = "captureOwnerStack"
Copy link
Member

@tsnobip tsnobip Oct 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understood the API, it should return null or string, so either use a @return or Null.t.

Copy link
Collaborator Author

@Freddy03h Freddy03h Oct 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't know this decorator, thanks!