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

useDocumentData returns undefined on first render until forced browser refresh returns data #305

Open
Kylescottw opened this issue Jun 14, 2023 · 0 comments

Comments

@Kylescottw
Copy link

Kylescottw commented Jun 14, 2023

Using latest next "next": "13.4.4",
reference ticket: #252

const queryRef = query(
    collection(db, "tournaments"),
    orderBy("date"),
    where("date", ">", timeStamp),
    limit(1)
  );

  const [tournaments, loadingTournaments, errorTournaments] = useCollectionOnce(
    queryRef,
    {
      snapshotListenOptions: { includeMetadataChanges: true },
    }
  );
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

No branches or pull requests

1 participant