Skip to content

Commit

Permalink
React. Missed JS name for useActionState
Browse files Browse the repository at this point in the history
  • Loading branch information
turansky committed Jan 2, 2025
1 parent 6c8cf29 commit ce4c1dc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import react.ActionStateInstance2
/**
* [Online Documentation](https://react.dev/reference/react/useActionState)
*/
@JsName("useActionState")
external fun <S> useActionStateRaw(
action: (state: S) -> PromiseResult<S>,
initialState: S,
Expand All @@ -18,6 +19,7 @@ external fun <S> useActionStateRaw(
/**
* [Online Documentation](https://react.dev/reference/react/useActionState)
*/
@JsName("useActionState")
external fun <S, P> useActionStateRaw(
action: (state: S, payload: P) -> PromiseResult<S>,
initialState: S,
Expand Down

0 comments on commit ce4c1dc

Please sign in to comment.