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 ece519c commit f57a5c9Copy full SHA for f57a5c9
.changeset/old-badgers-beam.md
@@ -0,0 +1,5 @@
1
+---
2
+"@effect-atom/atom-livestore": patch
3
4
+
5
+make .store atom an explicit Effect
packages/atom-livestore/src/AtomLivestore.ts
@@ -82,7 +82,7 @@ export const Tag = <Self>() =>
82
)
83
84
self.runtime = Atom.runtime(self.layer)
85
- self.store = self.runtime.atom(() => self)
+ self.store = self.runtime.atom(Effect.contextWith(Context.get(self)) as any)
86
self.storeUnsafe = Atom.readable((get) => {
87
const result = get(self.store)
88
return Result.getOrElse(result, constUndefined)
0 commit comments