Malcolm Jarvis
Malcolm Jarvis
`getState` returns an optional in order to allow for the chance that the store gets deallocated during execution of some asynchronous middleware. While hidden, this also happens with `dispatch` in...
Its not a straight swap over, but something like changing Middleware to: `public typealias Middleware = (Store) -> (@escaping DispatchFunction) -> DispatchFunction` Then in `Store`, `dispatchFunction` becomes `public var dispatchFunction:...
@a-voronov Ah! Thats a very interesting point! a second downside to that is the two extra closure calls per middleware per action could be a not-insignificant performance hit, as well.
We have a branch with experimental SwiftUI support: https://github.com/ReSwift/ReSwift/tree/mjarvis/swiftui Usage is by injecting the store as an environment object, and then accessing it in views.
@megadidar As mentioned, there is experimental support in a branch. as SwiftUI is still an early product, none of the ReSwift core devs have the opportunity to do real-world testing...
@lexuanquynh As mentioned earlier, use https://github.com/ReSwift/ReSwift/tree/mjarvis/swiftui Insert the store into the environment, then use `@EnvironmentObject var store: Store` in your view, and then you can directly use `store.state.xyz` in the...
@Joy-G Usage is very simple if using the `mjarvis/swiftui` branch as indicated in https://github.com/ReSwift/ReSwift/issues/424#issuecomment-570263696 I don't believe an example would provide much benefit. We have not had time to do...
@jimlai58 The whole point of Redux and ReSwift is for the global store and unidirectional data flow. While completely valid approaches, your suggestions here completely defeat those purposes. There are...
@aventurella I'd recommend using a diffing algorithm to compare the displayed data & the new data from the store. There are a whole bunch of open source diffing libraries out...
Its likely this is using a default theme from Jazzy, and that we can likely update jazzy / the theme, and theoretically they have updated their dependencies.