We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03fdfe7 commit 80af7bbCopy full SHA for 80af7bb
packages/compass-components/src/hooks/use-error-details.tsx
@@ -77,8 +77,12 @@ export const ErrorDetailsModalArea: React.FC = ({ children }) => {
77
});
78
79
const contextValue = React.useMemo(
80
- () => ({ showErrorDetails, isMounted: true }),
81
- []
+ () => ({
+ showErrorDetails: (options: ErrorDetailsOptions) =>
82
+ setErrorDetailsProps({ open: true, ...options }),
83
+ isMounted: true,
84
+ }),
85
+ [setErrorDetailsProps]
86
);
87
88
// Event listener to use confirmation modal outside of react
0 commit comments