You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And in the entry point of the application we can provide a version of the dependency that actually interacts with the real world API server:
@@ -397,7 +397,7 @@ await store.receive(.numberFactResponse(.success("0 is a good number Brent"))) {
397
397
await store.send(.factAlertDismissed) {
398
398
$0.numberFactAlert=nil
399
399
}
400
-
```
400
+
```
401
401
402
402
We can also improve the ergonomics of using the `numberFact` dependency in our application. Over time the application may evolve into many features, and some of those features may also want access to `numberFact`, and explicitly passing it through all layers can get annoying. There is a process you can follow to “register” dependencies with the library, making them instantly available to any layer in the application.
0 commit comments