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 8671e95 commit 4527ad3Copy full SHA for 4527ad3
.storybook/preview.js
@@ -1,4 +1,19 @@
1
+import React from 'react';
2
+import ReactDOM from 'react-dom';
3
import enMessages from '../app/translations/en.json';
4
+
5
+// React 19 compatibility shim for unmountComponentAtNode
6
+if (!ReactDOM.unmountComponentAtNode) {
7
+ ReactDOM.unmountComponentAtNode = (container) => {
8
+ if (container._reactRootContainer) {
9
+ container._reactRootContainer.unmount();
10
+ delete container._reactRootContainer;
11
+ return true;
12
+ }
13
+ return false;
14
+ };
15
+}
16
17
export const parameters = {
18
actions: { argTypesRegex: '^on[A-Z].*' },
19
controls: {
0 commit comments