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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atom.io",
3
- "version": "0.33.15",
3
+ "version": "0.33.16",
4
4
  "description": "Composable and testable reactive data library.",
5
5
  "homepage": "https://atom.io.fyi",
6
6
  "sideEffects": false,
@@ -51,7 +51,7 @@ export function createRegularAtomFamily<T, K extends Canonical>(
51
51
  const def = options.default
52
52
  const individualOptions: RegularAtomOptions<T> = {
53
53
  key: fullKey,
54
- default: def instanceof Function ? def(key) : def,
54
+ default: def instanceof Function ? () => def(key) : def,
55
55
  }
56
56
  if (options.effects) {
57
57
  individualOptions.effects = options.effects(key)