LoadInitialStateAction
that resolves with an array of [Item]
; i have a middleware guard
ing for that action, and if it is .loaded(items)
, i dispatch(someThunk)
; someThunk
being the next asynchronous action that relies on items
. what i'm running into is the ReSwift:ConcurrentMutationStateError- Action has been dispatched while a previous action is being processed
occurring when my someThunk
returns quickly
store
and using a serial queue
internally to dispatch
, but that didnt work :worried: my fix was basically DispatchQueue.main.asyncAfter(.now() + 1)
https://twitter.com/ios_memes/status/1159781903559528450/photo/1