Closed mecid closed 5 years ago
Thanks for the idea!
Sure it feels more SwiftUI, but this is just a syntaxic sugar over .envObject now, and in the future, I may plan to evolve the StoreProvider struct.
@Dimillian I've fixed tests. Yeah, basically it is the same result, but with approach more similar to SwiftUI. We can skip it if the main idea is to have API similar to Redux.
Yeah, even if it's not the best SwiftUI approach, I prefer to keep it closer to Redux syntax, as this will look familiar to many people coming here. I like the approach thought :)
Store provider refactored to be ViewModifier instead of View