-
Notifications
You must be signed in to change notification settings - Fork 517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only pass changed values in newState #319
Comments
@dav92lee by default, if the state you select is
if you're using latest ReSwift |
Thanks for such a quick reply! when i throw that code
I get the error:
Can i not do this when subclass Thanks so much again! |
Make sure your extension ViewController: StoreSubscriber {
func newState(state: MySubStateType) {
// ...
}
} |
Hmm.. I currently don't have any substates
should I create two separate substates for state.topBar and state.searchText to get my intended flow in TODO above? Thanks again! |
In your example, If you make |
Hello again! I created this function in
however, I am still getting this error: |
I think this issue solves my problem: #318 |
Is there a way to only receive the properties that have changed in the newState function? I was looking at the code in https://github.com/ReSwift/ReSwift/blob/937c628a1a9306d70f86c7c6c79c4f5ae38a0ad7/ReSwift/CoreTypes/Subscription.swift however I couldn't seem to figure it out
The text was updated successfully, but these errors were encountered: