set the default value of debugStore and debugEvent to be false

This commit is contained in:
Bowen Tan 2022-05-10 14:02:08 +08:00
parent 56b22d81e8
commit f088608fe9
3 changed files with 3 additions and 5 deletions

View File

@ -36,7 +36,7 @@ export const DemoWrapper: React.FC<Props> = props => {
const { App } = initSunmaoUI({ libs: [ArcoDesignLib] });
const [isShowCode, setIsShowCode] = useState(false);
const sunmaoApp = <App options={application} debugEvent={false} debugStore={false} />;
const sunmaoApp = <App options={application} />;
const codeArea = (
<pre className={codeStyle}>{JSON.stringify(application, null, 2)}</pre>

View File

@ -116,8 +116,6 @@ export const Editor: React.FC<Props> = observer(
<ErrorBoundary>
<App
options={app}
debugEvent={false}
debugStore={false}
gridCallbacks={gridCallbacks}
/>
</ErrorBoundary>

View File

@ -18,8 +18,8 @@ export const App: React.FC<AppProps> = props => {
options,
services,
gridCallbacks,
debugStore = true,
debugEvent = true,
debugStore = false,
debugEvent = false,
hooks,
} = props;
const runtimeAppSchemaManager = useRef(new RuntimeAppSchemaManager());