-
Notifications
You must be signed in to change notification settings - Fork 496
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure page is ignored, how to reset page to 0 ? #6110
Comments
I think you want |
refine is not for just adding a string search ? i use it in same screen because user can filter from inputText too the refine signature is
but my probleme is i can have same |
That's |
馃悰 Current behavior
i'm using
InstantSearch
Configure
anduseInfiniteHits
to fetch data from algoliamy data in algolia hits are like this
my probleme is i cannot reset search page to 0 no matter what i try, or maybe clear all the cache ?
for example i have 400 data, i show them all in the flatlist with
infinityHits
pagination andshowMore
,hitsPerPage={50}
is set so my page become equal to 8 now,now the user want to filter data and show only
univers:food
for example ( and there is only 20 hits of food),i look on the HTTP query , page still set to 8 but facefilter is changed. so result is null because pagination window start at page 8 instead of 0
HOW TO RESET THIS DAMN PAGE please ?
i even try to useMemo to force unmount
Configure
andInfiniteHits
my tsx look like this in very simplified way
馃攳 Steps to reproduce
Live reproduction
cannot have link now
馃挱 Expected behavior
i want to reset the page to 0 before new query is fetched , when i add a new facetfilter for example
or how to use
resetPage()
?thank you very much
Package version
react-instantsearch-core 7.3.0
Operating system
macos
Browser
reactnative 0.73.5
Code of Conduct
The text was updated successfully, but these errors were encountered: