Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Move FieldPath.documentId to companion object #487

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
0 of 3 checks passed
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.

2 participants