atom.io 0.33.15 → 0.33.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/internal/index.js
CHANGED
|
@@ -682,7 +682,7 @@ function createRegularAtomFamily(store, options, internalRoles) {
|
|
|
682
682
|
const def = options.default;
|
|
683
683
|
const individualOptions = {
|
|
684
684
|
key: fullKey,
|
|
685
|
-
default: def instanceof Function ? def(key) : def
|
|
685
|
+
default: def instanceof Function ? () => def(key) : def
|
|
686
686
|
};
|
|
687
687
|
if (options.effects) individualOptions.effects = options.effects(key);
|
|
688
688
|
const token = createRegularAtom(target, individualOptions, family);
|