Skip to content

Conversation

@unreal0
Copy link

@unreal0 unreal0 commented Jun 23, 2019

  • update gradle to 5.1
  • add livequery example

print('$_printConstLiveQuery: Done');
}
}, onError: (Error error) {
}, onError: (error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this necessary? All variables should have Types inferred

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes , I don't know why it doesn't work when you define the type it's throw exception.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The inferred type in onError is "Object" not "Error".

onError: (Object o) {
Error error = o;
}

or

You can leave the type, dart will assign the type Object when passing to function.

T object, Map<String, dynamic> map, bool createNewObject) {
if (createNewObject && object is ParseCloneable) {
return object.clone(map);
} else if (object is ParseObject) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why has this changed? It works correctly now? Seems like an unnecessary change?

Copy link
Member

@phillwiggins phillwiggins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, please can you move this merge request to the branch release/1.0.23

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants