Malcolm Jarvis
Malcolm Jarvis
Using ReSwift in your own project via inclusion via Carthage or CocoaPods does not, and will not import development dependencies.
> This way when building not for development SwiftLint wouldn't even run, as anyway a consumer of the framework shouldn't care about the style violation warnings This. 👍
I'm not certain, but https://academy.realm.io/posts/benji-encz-unidirectional-data-flow-swift/ might be the same talk? Its unfortunate that realm broke links. Could @Ben-G confirm if this is the same talk? if so I'll replace the...
I think I'm a bit confused as to why the generic middleware has been rejected, I could just be missing something. > @Qata: You can still share this Middleware between...
Yes, Swift doesn't support using protocols for generics in that fashion. We'd have to figure out a way such that middleware isn't assigned to anything until its being used in...
It uses functional concepts [map, filter,etc] (which I like), but its not functional in that the base middleware is a stored variable (initialized struct), instead of being a function itself....
1. This means we can't have generic state type on middleware (which we don't now, so I guess thats not a big deal, though we could add it instead of...
@DivineDominion Here are some examples of real middleware I'm using: (simplified) 1. Logging. Takes the action being run, puts it in a log file. Does not require state or dispatch....
In order to subscribe to multiple states you'll need to use some sort of helper object. You could do this with a Reactive helper (such as `ReRxSwift`), or helper objects...
if `counter2` is `: Equatable` and you have `automaticallySkipRepeats` enabled (the default) then it should skip them automatically. If not you might have to implement `skipRepeats` yourself: ```swift mainStore.subscribe(self.state2Subscriber) {...