Skip to content

Commit 5cca021

Browse files
committed
make state getter public
1 parent a9c8ecf commit 5cca021

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Reactor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public class Core<StateType: State> {
7777

7878
private var subscriptions = [Subscription<StateType>]()
7979
private var middlewares = [Middlewares<StateType>]()
80-
private (set) var state: StateType {
80+
public private (set) var state: StateType {
8181
didSet {
8282
subscriptions = subscriptions.filter { $0.subscriber != nil }
8383
DispatchQueue.main.async {

0 commit comments

Comments
 (0)