`connectPagination` sometimes provide outdated properties
See original GitHub issue🐛 Bug description
When updating the query to a query that returns less hits, connectPagination
sometimes provide outdated properties.
🔍 Bug reproduction
I couldn’t reproduce in a sandbox, but here are some steps to reproduce the issue on our website:
- Go to https://www.studeersnel.nl/nl/search/Exam-AESB?institutionId=1
- Update the query to be
Exam AESB311
- Press Enter
- See incorrect pagination
- Reload, you’ll see that the pagination disappears
Also, here is a video showing how connectPagination
provides outdated properties, as opposed to, for instance, `connectStateResults.
💭 Expected behavior
connectPagination
should return the correct number of pages at all time.
Environment
- OS: MacOS
- Browser: Chrome
- Version: 6.23.0
Issue Analytics
- State:
- Created a year ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
`connectPagination` sometimes provide outdated properties
Bug description When updating the query to a query that returns less hits, connectPagination sometimes provide outdated properties.
Read more >headless cms – CSS-Tricks
Because of this, this page works like any old WordPress theme, and works exactly as ... Connect Pagination to global context to give...
Read more >Florida on TV – South Florida Entertainment Television
Looking for More Land On Your Property? If you go a little bit west in Davie, FL you can find properties with more...
Read more >Theme - Design Lance
Overriding CSS, whether layout, preset, or block styles, presents an obstacle to integration and interoperability: visual parity between the frontend and ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I forgot about that issue and it indeed sounds the same. On another note, have you tried out React InstantSearch Hooks? We have components available now too, and its organisation is simpler, so issues like these should no longer be possible
Sorry, I missed your response here @Ksntcrq. The page number is available in connectStateResults too: https://codesandbox.io/s/nice-hertz-zz3w8m?file=/src/App.js