-
Notifications
You must be signed in to change notification settings - Fork 24
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
deliveryChanges does not work with Dart2 (with solution) #54
Comments
I assume you're seeing the issue at runtime in DDC? what version of the SDK are you on? |
sorry. |
If we change the type to
I think this is likely to be a bit tougher to solve and I'm not sure if we have the bandwidth to dig deeply on it... |
yeah, just tested it and it threw an error with ANY. Maybe just sending an empty instead of the ANY const? Or you can store the last queue and send it again if the new queue is empty. |
CC @nshahan |
For now I am using my fork: https://github.com/jodinathan/observable to: and to:
It is a breaking change, however, that empty ChangeRecord from ANY const has no value at all. |
Hi guys, any update on this as far as a permanent fix is concerned, I'd rather use observable if a fix is forthcoming. |
@nshahan ? |
I'll do some testing on our codebase to see if we can easily fix up any breaks. |
I've created a pull request to fix this issue: |
Not sure why the flutter team leaves these issues open -- it's been a year, what's the status of this issue? |
@wsakka it has been fixed with version 0.22.1+5. |
Extend ChangeNotifier with your own ChangeRecord, like:
once you add some notifications, dart throws an error on:
The only thing you need to do to solve it is change this line:
to this:
The text was updated successfully, but these errors were encountered: