Skip to content

Commit

Permalink
make state getter public
Browse files Browse the repository at this point in the history
jarsen committed Sep 23, 2016
1 parent a9c8ecf commit 5cca021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Reactor.swift
Original file line number Diff line number Diff line change
@@ -77,7 +77,7 @@ public class Core<StateType: State> {

private var subscriptions = [Subscription<StateType>]()
private var middlewares = [Middlewares<StateType>]()
private (set) var state: StateType {
public private (set) var state: StateType {
didSet {
subscriptions = subscriptions.filter { $0.subscriber != nil }
DispatchQueue.main.async {

0 comments on commit 5cca021

Please sign in to comment.