useInfiniteHits only showing current page of results instead of all results up to current page #6112
              
                Unanswered
              
          
                  
                    
                      AbdelrahmanAhmed605
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment
-
| Hi, you might want to use  | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Say I have a configuration of 10 hits per page. When I use
<InfiniteHits/>it shows my first page of results, then clicking on "show more" shows both page 1 and page 2 of results (results 1-20). But when I use the useInfiniteHits hook, it only shows page 2 of results (results 11-20). I want to use the hook and append the results like in<InfiniteHits/>This is how I am using my hook:
Beta Was this translation helpful? Give feedback.
All reactions