Skip to content

Move FieldPath.documentId to companion object #487

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged

Conversation

Daeda88
Copy link
Contributor

@Daeda88 Daeda88 commented Apr 3, 2024

Reason for this move is that:

  1. It is a static property so it should be in a companion object
  2. At least on iOS, doing FieldPath().documentId would crash since fieldPath needs at least one fieldName. So you'd have to call FieldPath("fakePath").documentId which is obviously not good

@nbransby nbransby merged commit f808163 into GitLiveApp:master Apr 3, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants