RFC: more complete connectPagination
See original GitHub issueDo you want to request a feature or report a bug?
feature
Feature: What is your use case for such a feature?
Currently there’s still a significant amount of code to write if you want to write your own pagination
component.
Feature: What is your proposed API entry? The new option to add? What is the behavior?
Deal with the whole clamping, +1 / -1 and padding issue in the connector rather than the view
What is the version you are using? Always use the latest one before opening a bug issue.
2.4.1
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top Results From Across the Web
instantsearch.js - UNPKG
src/connectors/pagination/connectPagination.ts",". ... n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
Read more >Pagination | React InstantSearch - Algolia
A React InstantSearch widget for allowing users to change the current page of the search results.
Read more >react-instantsearch-dom @ 5.4.0 .. 5.6.0 - Package Diff
Visual diff of the npm package 'react-instantsearch-dom' comparing 5.4.0 with 5.6.0.
Read more >Gumroad 2d Animation Inbetweening Download Torrent
The one thing I coulda seen making this a more compelling mix would ... -page,connect-pagination,connect-parallel,connect-parameter-router ...
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 FreeTop 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
Top GitHub Comments
IMO that’s very brittle logic that I’d rather have in the connector than in the widget, the one you linked seems like another implementation than the one in IS.js with Pagination.js. for exactly that reason I’d like to have this info in the connector.
I think a good option would be to make a new connector, e.g.
unsafe_connectPagination()
which we add for now, can be used internally by our IS implementations, or simply adding the extra info under abeta
nameI’m in! I agree and it fits the ALLAPITV (as little logic as possible in the view) principle 😃 That’s a breaking change though. Maybe a candidate for the v3?