Skip to content

Commit 75a1223

Browse files
committed
refactor: remove appInfo from pluginConfig when overriding config
1 parent dc86f78 commit 75a1223

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/build/genericComponentOverrideContext.js

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/ts/superTokens.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,10 @@ export default class SuperTokens {
258258

259259
for (const plugin of finalPluginList) {
260260
if (plugin.config) {
261-
// @ts-ignore we don't want to override the appInfo and we can't make sure the plugin won't return it
262-
const { appInfo, ...pluginConfig } =
263-
plugin.config(getPublicConfig({ ...config, appInfo: normalisedAppInfo })) || {};
261+
const pluginConfig = plugin.config(getPublicConfig({ ...config, appInfo: normalisedAppInfo })) || {};
262+
263+
// @ts-expect-error we don't want to override the appInfo and we can't make sure the plugin won't return it
264+
delete pluginConfig.appInfo;
264265

265266
config = { ...config, ...pluginConfig };
266267
}

0 commit comments

Comments
 (0)