Skip to content

Commit 9c72074

Browse files
committed
avoid rerenders when setting config from SDK
1 parent 245cdc7 commit 9c72074

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/livecodes/core.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5566,13 +5566,6 @@ const createApi = (): API => {
55665566
await reloadCompiler(newAppConfig);
55675567
}
55685568
await applyConfig(newConfig, /* reload = */ true, currentConfig);
5569-
const content = getContentConfig(newConfig as Config);
5570-
const hasContent = Object.values(content).some((value) => value != null);
5571-
if (hasContent) {
5572-
await loadConfig(newAppConfig);
5573-
} else if (shouldRun && newAppConfig.autoupdate === true) {
5574-
await run();
5575-
}
55765569
return newAppConfig;
55775570
};
55785571

0 commit comments

Comments
 (0)