Skip to content

Commit 91d4842

Browse files
committed
Refactoring
1 parent 148b37c commit 91d4842

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/Atoms/AtomDerivedScope.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import SwiftUI
2424
/// ```
2525
///
2626
public struct AtomDerivedScope<Content: View>: View {
27-
private let context: AtomViewContext
27+
private let store: StoreContext
2828
private let content: Content
2929

3030
/// 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 {
3737
_ context: AtomViewContext,
3838
@ViewBuilder content: () -> Content
3939
) {
40-
self.context = context
40+
self.store = context._store
4141
self.content = content()
4242
}
4343

4444
/// The content and behavior of the view.
4545
public var body: some View {
46-
content.environment(\.store, context._store)
46+
content.environment(\.store, store)
4747
}
4848
}

0 commit comments

Comments
 (0)