File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,11 @@ A simple cache that can be used to store objects.
3030Use a ` Stash ` to store objects of a given type in memory using an associated key.
3131You can then fetch attempt to retrieve from the ` Stash ` at a later time using the key.
3232
33+ ### π¬ SharedState
34+ A simple container that encapsulates an object allowing others to subscribe to and monitor changes to the state.
35+
36+ Frequently use in PointFree's TCA architecture to subscribe long-running effects to shared state changes.
37+
3338### βοΈ Extensions
3439A collection of useful extensions that I freqeuntly implement across multiple projects.
3540
Original file line number Diff line number Diff line change @@ -29,11 +29,9 @@ import Fuse
2929public typealias SharedStateUpdateBlock < T> = ( _ old: T , _ new: T ) async -> Void
3030
3131
32- /// A box that encapsulates an object allowing others to subscribe to and monitor changes to the state.
33- ///
34- /// Useful when you have multiple services or features that wish to subscribe to changes.
35- ///
36- /// Frequently use in PointFree's TCA architecture to subsribe long-running effects to shared state changes.
32+ /// A simple container that encapsulates an object allowing others to subscribe to and monitor changes to the state.
33+ ///
34+ /// Frequently use in PointFree's TCA architecture to subscribe long-running effects to shared state changes.
3735///
3836/// ```
3937/// let settings = SharedState(Settings(theme: .dark), onChange: { old, new in
You canβt perform that action at this time.
0 commit comments