react-redux-realworld-example-app
react-redux-realworld-example-app copied to clipboard
Your Feed pagination broken, not adding offset
This repo at 9186292054dc37567e707602a15a0884d6bdae35
Create new user, login, add 11 followers with at least one article then visit /
to see "Your Feed" (articles by users you follow).
Pagination has e.g. 2 pages.
The first page looks fine, from Chrome developer tools Network tab we see a /api/articles/feed?limit=10&offset=0
API hit as expected.
However, when you click on the second page button 2
, it fetches again /api/articles/feed?limit=10&offset=0
instead of the expected /api/articles/feed?limit=10&offset=10
.
And whatever it is the version that is running at https://react-redux.realworld.io actually returns global data for the second page from /api/articles?limit=10&offset=10
.
This was not solved by https://github.com/gothinkster/react-redux-realworld-example-app/pull/161
Tested at https://github.com/cirosantilli/node-express-sequelize-realworld-example-app/tree/74401f159c9aa2a417bb4e0911afbab162f29082 with test data generation ./bin/generate-demo-data
.