-
Notifications
You must be signed in to change notification settings - Fork 44
React 19.1 captureOwnerStack #146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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") @return(nullable) | ||
| external captureOwnerStack: unit => option<string> = "captureOwnerStack" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nitpick: add a doc comment with link to https://react.dev/reference/react/captureOwnerStack
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a way to format it? I don't see any other comment with link to the react doc.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doesn't mean you shouldn't add it. |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually
@return(null_to_opt)would make the intention clearer as the API can only returnstringornullaccording to the docs (but notundefined).