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

Problems with "page" variable #153

Open
alexsantm2019 opened this issue Jul 26, 2021 · 0 comments
Open

Problems with "page" variable #153

alexsantm2019 opened this issue Jul 26, 2021 · 0 comments

Comments

@alexsantm2019
Copy link

Hi everyone,

The component works fine in my view, however I have a problem with the variable "page". It happens that I have a component that has nested filters, and when I call an API, it returns the results without problems; I scroll, and it brings me data by pages (everything OK). When I change the filter (by dates), the "page" variable is set with the last value of the previous API call, and therefore, sometimes the results are empty. How can I improve the treatment of the "page" variable, so that every time I ask for a new filter, it stays at 1?

Thanks in advanced

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

1 participant