Revert Firestore data() to data #3369
Unanswered
feinstein
asked this question in
Feature request
Replies: 2 comments 10 replies
-
There is a reasoning for this change - it should be possible to call |
Beta Was this translation helpful? Give feedback.
3 replies
-
Wouldn't doing Here's some additional points on the two;
|
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I recently updated my Firestore package to the latest version and the old
data
getter became a functiondata()
. This is really strange to use as we need to call it asmyDoc.data()['note']
, instead of justd.data['note']
which is much more readable and makes more sense. I read the source-code and really can't see why the change was made.Also I had several problems updating as not only it isn't backwards compatible, but also in dynamic code it will compile and just break at runtime saying that a function can't be a
Map
or something like this, I don't remember exactly.Maybe this looks like something small to many, but I really don't like this as it looks like the API became more cumbersome and less polished.
Beta Was this translation helpful? Give feedback.
All reactions