Skip to content

Commit 0e5f89f

Browse files
authored
docs: fix hook name to composition version (#3237)
1 parent 7d7d50e commit 0e5f89f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/composition-api-lifecycle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ Registers a hook to be called when an error propagating from a descendant compon
210210
In production, the 3rd argument (`info`) will be a shortened code instead of the full information string. You can find the code to string mapping in the [Production Error Code Reference](/error-reference/#runtime-errors).
211211
:::
212212

213-
You can modify component state in `errorCaptured()` to display an error state to the user. However, it is important that the error state should not render the original content that caused the error; otherwise the component will be thrown into an infinite render loop.
213+
You can modify component state in `onErrorCaptured()` to display an error state to the user. However, it is important that the error state should not render the original content that caused the error; otherwise the component will be thrown into an infinite render loop.
214214

215215
The hook can return `false` to stop the error from propagating further. See error propagation details below.
216216

0 commit comments

Comments
 (0)