You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 and showMore, 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 and InfiniteHits
but my probleme is i can have same query ( like mcdo that user typed in textInput ) then he press food filter , so i need to run a query
with search = "mcdo" and facetFilters with food
馃悰 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: