-
- Downloads
fix(sdk): support React 17 backwards compatibility (#46012)
* polyfill useSyncExternalStore for React 17 * adds the shim * use ReactDOM.render instead of createRoot for backwards compat * use createRoot for React 18 environment * refactor renderRoot compatibility * remove semver dependency * add small test for version * use the same check for react 17
Showing
- enterprise/frontend/src/embedding-sdk/components/public/InteractiveQuestion/components/BackButton.tsx 5 additions, 3 deletions...ents/public/InteractiveQuestion/components/BackButton.tsx
- enterprise/frontend/src/embedding-sdk/index.ts 3 additions, 0 deletionsenterprise/frontend/src/embedding-sdk/index.ts
- enterprise/frontend/src/embedding-sdk/lib/polyfill-use-sync-external-store.ts 11 additions, 0 deletions...src/embedding-sdk/lib/polyfill-use-sync-external-store.ts
- frontend/src/metabase/lib/react-compat.ts 34 additions, 0 deletionsfrontend/src/metabase/lib/react-compat.ts
- frontend/src/metabase/visualizations/components/TableInteractive/TableInteractive.jsx 6 additions, 6 deletions...izations/components/TableInteractive/TableInteractive.jsx
frontend/src/metabase/lib/react-compat.ts
0 → 100644
Please register or sign in to comment