Skip to content

Commit

Permalink
fix launch effect handler from start
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelannin committed Jul 9, 2024
1 parent c0d3a64 commit 2d1e5e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Keemun.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Keemun'
s.version = '2.0.0-beta02'
s.version = '2.1.0'
s.summary = 'Swift the Elm architecture pattern'
s.description = <<-DESC
Swift framework that provides a way to write code using The Elm Architecture pattern.
Expand Down
2 changes: 1 addition & 1 deletion Sources/KeemunSwift/Store/Store.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ public final class Store<State, Msg, Effect> {
let observeMessagesQueue = DispatchQueue(label: "keemun.observeMessagesQueue", qos: .userInitiated)
self._messages
.receive(on: observeMessagesQueue)
.handleEvents(receiveSubscription: { _ in self.effectProcess(startEffects, dispatch: self.dispatch) })
.buffer(size: .max, prefetch: .keepFull, whenFull: .dropOldest)
.sink { msg in self.observeMessages(state: self._state.value, msg: msg) }
.store(in: &self.cancellables)
self.effectProcess(startEffects, dispatch: self.dispatch)
}

/// Sending messages asynchronously.
Expand Down

0 comments on commit 2d1e5e0

Please sign in to comment.