mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
Only update globals if they're different
This commit is contained in:
parent
897581e069
commit
b36d6ac473
@ -77,7 +77,7 @@ export const init: ModuleFn = ({ store, fullAPI }) => {
|
||||
logger.warn('received globals from a non-local ref. This is not currently supported.');
|
||||
}
|
||||
|
||||
if (currentGlobals) {
|
||||
if (currentGlobals && !deepEqual(globals, currentGlobals)) {
|
||||
api.updateGlobals(currentGlobals);
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user