We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
export const db = getFirestore();
const userData = docStore(db, `users/rNvXG7F...KyJw1`); console.log($userData);
const userData = docStore(db, `users/${$user?.uid}`); console.log($userData);
Both examples log undefined. Has there been an update that broke docStore or am I just unbelievable stupid?
The text was updated successfully, but these errors were encountered:
docstore will initially return undefined as its fetching, so you'll have to do a if check.
<script> const userData = docStore(db, `users/rNvXG7F...KyJw1`); </script> {#if $userData !== undefined} {userData.ref} {:else} <p>Loading... </p> {/if}
Sorry, something went wrong.
No branches or pull requests
export const db = getFirestore();
Both examples log undefined.
Has there been an update that broke docStore or am I just unbelievable stupid?
The text was updated successfully, but these errors were encountered: