Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
manudeli committed Oct 11, 2023
1 parent 9de7562 commit c7a1eac
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
'use client'

import { ErrorBoundary, useErrorBoundary } from '@suspensive/react'
import { ErrorBoundary, useErrorBoundary, useErrorBoundaryFallbackProps } from '@suspensive/react'
import { PropsWithChildren, createElement, useEffect, useState } from 'react'

export default function Page() {
return (
<ErrorBoundary
fallback={function ErrorBoundaryFallback({ error }) {
const errorBoundary = useErrorBoundary()
const props = useErrorBoundaryFallbackProps()

return <button onClick={() => errorBoundary.reset()}>reset: {error.message}</button>
return <button onClick={props.reset}>reset: {error.message}</button>
}}
>
{createElement(function ErrorComponent() {
Expand Down

0 comments on commit c7a1eac

Please sign in to comment.