File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import SwiftUI
24
24
/// ```
25
25
///
26
26
public struct AtomDerivedScope < Content: View > : View {
27
- private let context : AtomViewContext
27
+ private let store : StoreContext
28
28
private let content : Content
29
29
30
30
/// Creates a derived scope with the specified content that will be allowed to use atoms by
@@ -37,12 +37,12 @@ public struct AtomDerivedScope<Content: View>: View {
37
37
_ context: AtomViewContext ,
38
38
@ViewBuilder content: ( ) -> Content
39
39
) {
40
- self . context = context
40
+ self . store = context. _store
41
41
self . content = content ( )
42
42
}
43
43
44
44
/// The content and behavior of the view.
45
45
public var body : some View {
46
- content. environment ( \. store, context . _store )
46
+ content. environment ( \. store, store )
47
47
}
48
48
}
You can’t perform that action at this time.
0 commit comments