mirror of
https://github.com/mue/mue.git
synced 2026-07-27 10:41:08 +02:00
fix(react): Reverse commit 7179ee2 due to marketplace not loading
This commit is contained in:
@@ -289,7 +289,9 @@ class Marketplace extends PureComponent {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.state.items?.length === 0) {
|
// TODO: Fix marketplace not loading on react 18, this is a temporary fix but ungraceful
|
||||||
|
// this.getItems();
|
||||||
|
if (!this.state.items || this.state.items?.length === 0) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{errorMessage(
|
{errorMessage(
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { createRoot } from 'react-dom/client';
|
import { render } from 'react-dom';
|
||||||
|
|
||||||
import * as Sentry from '@sentry/react';
|
import * as Sentry from '@sentry/react';
|
||||||
|
|
||||||
import App from './App';
|
import App from './App';
|
||||||
@@ -25,5 +26,9 @@ Sentry.init({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const container = document.getElementById('root');
|
const container = document.getElementById('root');
|
||||||
const root = createRoot(container);
|
render(<App />, container);
|
||||||
root.render(<App />);
|
|
||||||
|
// TODO: Fix marketplace not loading on react 18 before upgrading
|
||||||
|
// import { createRoot } from 'react-dom/client';
|
||||||
|
// const root = createRoot(container);
|
||||||
|
// root.render(<App />);
|
||||||
|
|||||||
Reference in New Issue
Block a user