Skip to content

Commit 80a7566

Browse files
committed
fix: Wrong imports on examples
1 parent 3ccc9c3 commit 80a7566

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.changeset/tricky-deers-know.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
This introducing changes to `useReverification`, the changes include removing the array and returning the fetcher directly and also the dropping the options `throwOnCancel` and `onCancel` in favour of always throwing the cancellation error.
77

88
```tsx {{ filename: 'src/components/MyButton.tsx' }}
9-
import { useReverification } from '@clerk/react'
10-
import { isClerkRuntimeError } from '@clerk/react/error'
9+
import { useReverification } from '@clerk/clerk-react'
10+
import { isClerkRuntimeError } from '@clerk/clerk-react/error'
1111

1212
export function MyButton() {
1313
const enhancedFetcher = useReverification(() => fetch('/api/balance'))

packages/shared/src/react/hooks/useReverification.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function createReverificationHandler(params: CreateReverificationHandlerParams)
155155
* In the following example, `myFetcher` would be a function in your backend that fetches data from the route that requires reverification. See the [guide on how to require reverification](https://clerk.com/docs/guides/reverification) for more information.
156156
*
157157
* ```tsx {{ filename: 'src/components/MyButton.tsx' }}
158-
* import { useReverification } from '@clerk/react'
158+
* import { useReverification } from '@clerk/clerk-react'
159159
*
160160
* export function MyButton() {
161161
* const enhancedFetcher = useReverification(myFetcher)

0 commit comments

Comments
 (0)