(error: unknown, reset: () => void)
| 17 | const [local, others] = splitProps(props, ['fallback']); |
| 18 | |
| 19 | const fallback = (error: unknown, reset: () => void): JSX.Element => { |
| 20 | captureException(error, { |
| 21 | mechanism: { |
| 22 | handled: true, // handled because user has to provide a fallback |
| 23 | type: 'auto.function.solid.error_boundary', |
| 24 | }, |
| 25 | }); |
| 26 | |
| 27 | const f = local.fallback; |
| 28 | return typeof f === 'function' ? f(error, reset) : f; |
| 29 | }; |
| 30 | |
| 31 | return createComponent(ErrorBoundary, mergeProps({ fallback }, others)); |
| 32 | }; |
nothing calls this directly
no test coverage detected