Skip to content

Commit 021623d

Browse files
authored
Update MigratingTo1.4.md
1 parent fa31c93 commit 021623d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/ComposableArchitecture/Documentation.docc/Articles/MigratingTo1.4.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ store.receive(.child(.presented(.response(.success("Hello!")))))
114114
store.receive(\.child.presented.response.success)
115115
```
116116

117+
And in the case of ``PresentationAction`` you can even omit the ``presented`` path component:
118+
119+
```swift
120+
store.receive(\.child.response.success)
121+
```
122+
117123
This does not assert on the _data_ received in the action, but typically that is already covered
118124
by the state assertion made inside the trailing closure of `receive`. And if you use this style of
119125
action receiving exclusively, you can even stop conforming your action types to `Equatable`.

0 commit comments

Comments
 (0)