Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

ErrorBoundaryContext.ts

10 lines253 Bytes

1import { createContext } from 'preact'
2​
3type ErrorBoundaryContextType = {
4 didCatch: boolean
5 error: any
6 resetErrorBoundary: (...args: Array<any>) => void
7}
8​
9export const ErrorBoundaryContext =
10 createContext<ErrorBoundaryContextType | null>(null)