ResetBoundary for HoC
#4240
Replies: 1 comment
-
export const withTlsErrorBoundary = (Component: ComponentType) => (props) =>
(
<TlsErrorBoundary>
<Component {...props} />
</TlsErrorBoundary>
) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
stychu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm a bit struggling with how to pass reset function from either
QueryErrorResetBoundary
oruseQueryErrorResetBoundary
to the HoC provided byreact-error-boundary
.Resetting boundary work when using
<TlsErrorBoundary><ABC/></TlsErrorBoundary>
but I can't manage it with
withTlsErrorBoundary(ABC)
Any suggestion would be appreciated
Beta Was this translation helpful? Give feedback.
All reactions