mirror of
https://github.com/pointfreeco/swift-composable-architecture.git
synced 2025-12-24 12:14:25 +01:00
Update docs to use case key paths
This commit is contained in:
@@ -20,7 +20,7 @@ extension Store {
|
||||
/// func viewDidLoad() {
|
||||
/// // ...
|
||||
/// self.store
|
||||
/// .scope(state: \.optionalChild, action: { .child($0) })
|
||||
/// .scope(state: \.optionalChild, action: \.child)
|
||||
/// .ifLet(
|
||||
/// then: { [weak self] childStore in
|
||||
/// self?.navigationController?.pushViewController(
|
||||
|
||||
Reference in New Issue
Block a user