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

PostErrorComponent.tsx

15 lines367 Bytes

1import { ErrorComponent } from '@tanstack/vue-router'
2import type { ErrorComponentProps } from '@tanstack/vue-router'
3import { defineComponent } from 'vue'
4​
5export const PostErrorComponent = defineComponent({
6 props: {
7 error: {
8 type: Error,
9 required: true,
10 },
11 },
12 setup(props) {
13 return () => <ErrorComponent error={props.error} />
14 },
15})