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

communities not updating while login with different user #16

Open
myiqrayaan opened this issue Sep 14, 2023 · 3 comments
Open

communities not updating while login with different user #16

myiqrayaan opened this issue Sep 14, 2023 · 3 comments

Comments

@myiqrayaan
Copy link

when i create community with one user, it displays correctly then when i logout and again sign in with different user, it shows community of previous user in community list drawer. I have to hot reload every time login to see correct community of login user

@0xAdiyat
Copy link

when i create community with one user, it displays correctly then when i logout and again sign in with different user, it shows community of previous user in community list drawer. I have to hot reload every time login to see correct community of login user

Here you go man just resolved it.
Just pass UID using family of StreamProvider instead of directly using the userNotifier provider. This ensures accurate and real-time updates for community and post lists.

@mimoriam
Copy link

when i create community with one user, it displays correctly then when i logout and again sign in with different user, it shows community of previous user in community list drawer. I have to hot reload every time login to see correct community of login user

Here you go man just resolved it. Just pass UID using family of StreamProvider instead of directly using the userNotifier provider. This ensures accurate and real-time updates for community and post lists.

Can anybody provide some code to help along? Much appreciated ^^

@0xAdiyat
Copy link

0xAdiyat commented Jan 1, 2024

when i create community with one user, it displays correctly then when i logout and again sign in with different user, it shows community of previous user in community list drawer. I have to hot reload every time login to see correct community of login user

Here you go man just resolved it. Just pass UID using family of StreamProvider instead of directly using the userNotifier provider. This ensures accurate and real-time updates for community and post lists.

Can anybody provide some code to help along? Much appreciated ^^

@mimoriam you can check out my repo if you want.

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

3 participants