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

SetState doesn't work on the paginate firestore #136

Open
mubiru-simeon opened this issue Jun 7, 2022 · 4 comments
Open

SetState doesn't work on the paginate firestore #136

mubiru-simeon opened this issue Jun 7, 2022 · 4 comments

Comments

@mubiru-simeon
Copy link

Set State doesn't work on the Paginate firestore. Lets say i have a query of a collection called categories and inside it, a document called "utensils" and a nother called "art". Each of these documents has a nested list of documents and other data. I have a variable called "currentlySelected" that storesthe value of the category the user is currently viewing. If i load up the paginate firestore with the initial value as "utensils", it works. If a user presses a button and i use setstate to change the value of currentlySelected to "art", the data shown is still the same from the previous category. The variable in the query doesn't get changed dynamically.

@herryelbert
Copy link

Same thing here, I haven't found a way to do this either

@karrarfalih
Copy link

me too.

@OutdatedGuy
Copy link

Set State doesn't work on the Paginate firestore. Lets say i have a query of a collection called categories and inside it, a document called "utensils" and a nother called "art". Each of these documents has a nested list of documents and other data. I have a variable called "currentlySelected" that storesthe value of the category the user is currently viewing. If i load up the paginate firestore with the initial value as "utensils", it works. If a user presses a button and i use setstate to change the value of currentlySelected to "art", the data shown is still the same from the previous category. The variable in the query doesn't get changed dynamically.

Yo @nirancodelab, can you try using the key property in the PaginateFirestore widget with different values for different queries.

@Inihood1
Copy link

Set State doesn't work on the Paginate firestore. Lets say i have a query of a collection called categories and inside it, a document called "utensils" and a nother called "art". Each of these documents has a nested list of documents and other data. I have a variable called "currentlySelected" that storesthe value of the category the user is currently viewing. If i load up the paginate firestore with the initial value as "utensils", it works. If a user presses a button and i use setstate to change the value of currentlySelected to "art", the data shown is still the same from the previous category. The variable in the query doesn't get changed dynamically.

Did you solve it?

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

5 participants