diff --git a/package-lock.json b/package-lock.json index ce2aa29..dfb3292 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,8 +14,8 @@ "rescript": "^11.0.0" }, "peerDependencies": { - "react": ">=19.0.0", - "react-dom": ">=19.0.0" + "react": ">=19.1.0", + "react-dom": ">=19.1.0" } }, "node_modules/react": { diff --git a/package.json b/package.json index 11c8dda..45994af 100644 --- a/package.json +++ b/package.json @@ -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" } -} +} \ No newline at end of file diff --git a/src/React.res b/src/React.res index 0676012..da01d2b 100644 --- a/src/React.res +++ b/src/React.res @@ -451,3 +451,8 @@ external useOptimistic: ( /** `act` is a test helper to apply pending React updates before making assertions. */ @module("react") external act: (unit => promise) => promise = "act" + +/** captureOwnerStack reads the current Owner Stack in development and returns it as a string if available. */ +@module("react") +@return(null_to_opt) +external captureOwnerStack: unit => option = "captureOwnerStack"