Skip to content

Conversation

@jamesdaniels
Copy link
Collaborator

@jamesdaniels jamesdaniels commented Mar 11, 2020

Don't mind noise due to the recent linting changes.

No longer use the undocumented queryIdentifier method and cannonicalId property in RTDB and Firestore queries respectively. A) they're not stable B) cannonicalId doesn't give us the properties we expect and C) ._query.cannonicalId is getting mangled in the minified Firestore builds #221. Instead we should be using the exposed isEqual method to compare.

Now there is a break here, I needed to store these query caches globally & it's very important they work correctly across platforms. As such I decided to drop the flawed inline polyfill I already had for globalThis. I've included a polyfill in our test suite but I'm not bundling it.

We should communicate polyfills a developer might need in the docs. I will take a stab at that in this PR.

@jamesdaniels jamesdaniels requested a review from jhuleatt March 11, 2020 02:13
@jamesdaniels
Copy link
Collaborator Author

FYI @schmidt-sebastian

Copy link
Collaborator

@jhuleatt jhuleatt left a comment

Choose a reason for hiding this comment

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

Thanks James! Just a couple nits but LGTM!

@jamesdaniels jamesdaniels merged commit 0de1068 into master Mar 11, 2020
@jamesdaniels jamesdaniels deleted the no-private-api branch March 11, 2020 19:12
@FirebaseExtended FirebaseExtended locked and limited conversation to collaborators Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants