File tree Expand file tree Collapse file tree 3 files changed +0
-91
lines changed Expand file tree Collapse file tree 3 files changed +0
-91
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,6 @@ public protocol Atom<Produced>: Sendable {
3636 @MainActor
3737 func effect( context: CurrentContext ) -> Effect
3838
39- /// Deprecated. use `Atom.effect(context:)` instead.
40- @MainActor
41- func updated( newValue: Produced , oldValue: Produced , context: CurrentContext )
42-
4339 // --- Internal ---
4440
4541 /// A producer that produces the value of this atom.
@@ -51,9 +47,6 @@ public extension Atom {
5147 func effect( context: CurrentContext ) -> Effect where Effect == EmptyEffect {
5248 EmptyEffect ( )
5349 }
54-
55- @MainActor
56- func updated( newValue: Produced , oldValue: Produced , context: CurrentContext ) { }
5750}
5851
5952public extension Atom where Self == Key {
Original file line number Diff line number Diff line change @@ -323,7 +323,6 @@ private extension StoreContext {
323323 // Perform side effects first.
324324 let state = getState ( of: atom, for: key)
325325 let context = AtomCurrentContext ( store: self )
326- atom. updated ( newValue: newValue, oldValue: oldValue, context: context)
327326 state. effect. updated ( context: context)
328327
329328 // Calculate topological order for updating downstream efficiently.
@@ -346,7 +345,6 @@ private extension StoreContext {
346345
347346 // Perform side effects before updating downstream.
348347 let state = getState ( of: cache. atom, for: key)
349- cache. atom. updated ( newValue: newValue, oldValue: cache. value, context: context)
350348 state. effect. updated ( context: context)
351349 }
352350
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments