We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5205750 commit 3e45f46Copy full SHA for 3e45f46
1 file changed
src/make-exported.ts
@@ -13,7 +13,10 @@ const makeExported = <T extends object>(
13
},
14
shouldExtend = true,
15
): void => {
16
- store[exportedPropName] = { ...(shouldExtend ? store?.[exportedPropName] ?? {} : {}), ...props };
+ store[exportedPropName] = {
17
+ ...(shouldExtend ? (store?.[exportedPropName] ?? {}) : {}),
18
+ ...props,
19
+ };
20
};
21
22
/**
0 commit comments