-
Couldn't load subscription status.
- Fork 6k
Fix routerinformationupdate can take complex json #27932
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| browserHistory.setRouteName( | ||
| arguments!.tryString('location'), | ||
| state: arguments.tryString('state'), | ||
| state: arguments['state'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yjbanov should we add a tryObject()?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the point of tryObject though? it is already an object?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without a type, it's dynamic not Object?. Not sure if that's an important distinction or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw, feel free to submit the PR. If we need to change it to Object? we can do so later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can add that if that makes sense, btw what is the motive to avoid as String? and use tryString
* Fix routerinformationupdate can take complex json * comment
Fixes flutter/flutter#87823
Pre-launch Checklist
writing and running engine tests.
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.