question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`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:

  1. Go to https://www.studeersnel.nl/nl/search/Exam-AESB?institutionId=1
  2. Update the query to be Exam AESB311
  3. Press Enter
  4. See incorrect pagination
  5. 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:open
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Haroenvcommented, May 3, 2022

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

1reaction
Haroenvcommented, Apr 26, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found