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

Question: where does uid come from? #11

Open
cgrant opened this issue Dec 29, 2020 · 1 comment
Open

Question: where does uid come from? #11

cgrant opened this issue Dec 29, 2020 · 1 comment

Comments

@cgrant
Copy link

cgrant commented Dec 29, 2020

Thought there was a lot of good stuff in this repo. I've been looking at this one line for a while and curious how it works. You stopped just short of explaining this in your medium article.

In this line databaseBuilder: (_, uid) => FirestoreDatabase(uid: uid), I understand that FirestoreDatabase takes a named parameter called uid, and that the value for that is coming from (_, uid). What I'm not following is where the uid for (_, uid) is actually created and emitted in the first place.

If you have any insights I would appreciate it.

Thanks!

databaseBuilder: (_, uid) => FirestoreDatabase(uid: uid),

@cgrant cgrant changed the title Question: where does uid comefrom? Question: where does uid come from? Dec 29, 2020
@arturjnt
Copy link

I might be wrong, but it seems that it's on the lib/auth_widget_builder.dart which is only called on lib/my_app.dart, meaning, from my understanding, that the only way the uid will update is to reboot the entire app.
I'm waiting for an answer, here, meanwhile I've exhausted every explanation.

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

2 participants