firestore: samples should include client creation #11993
Labels
api: firestore
Issues related to the Firestore API.
priority: p3
Desirable enhancement or fix. May not be included in next release.
samples
Issues that are directly related to samples.
triage me
I really want to be triaged.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Currently, we have one sample for creating a client, and the others assume the client already exists.
This causes problems, because we have both a sync and an async client, and using the wrong client leads to errors. When the samples are viewed stand-alone, they don't give the proper context
We should instead include the creation of the client (and any important imports) as part of each sample, so they can better stand alone
The text was updated successfully, but these errors were encountered: