You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A property that starts with the prefix use is unfortunately named, as use usually indicates a hook in React. ErrorBoundary might also be a quite react specific term.
Renaming the property to e.g. throwError would more accurately describe what is happening: the error will be thrown. In React, it will be picked up by the nearest error boundary.
proposal
rename useErrorBoundary to throwError
The text was updated successfully, but these errors were encountered:
context
A property that starts with the prefix
use
is unfortunately named, asuse
usually indicates a hook in React.ErrorBoundary
might also be a quite react specific term.Renaming the property to e.g.
throwError
would more accurately describe what is happening: the error will be thrown. In React, it will be picked up by the nearest error boundary.proposal
useErrorBoundary
tothrowError
The text was updated successfully, but these errors were encountered: