You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 26, 2018. It is now read-only.
I'm just reviving the issue that the original person closed #244.
Basically he has a gist that shows the steps he took to fix the error. @0x80 mentioned that removing the reducer fixes the problem, and I want to also confirm that removing it causes the app to work, which leads me to believe that it has something to do with this library.
I basically have (this won't obviously work copy/paste):
importReact,{Component,PropTypes}from'react';import{Link}from'react-router';classPaginationextendsComponent{linkTo(label,page){const{ total, to }=this.props;consthref=to+page;if(page<1||page>total){returnnull;}return<Linkto={href}>{label}</Link>;}render(){const{ current }=this.props;return(<divclassName={styles.this}>{this.linkTo('Previous',current-1)}{this.linkTo('Next',current+1)}</div>);}}Pagination.propTypes={to: PropTypes.string.isRequired,current: PropTypes.number,total: PropTypes.number,};constroutes=(<Routepath="/"component={App}><IndexRoutecomponent={Home}/><Routepath="pages(/:page)"component={Category}/></Route>);constreducers=combineReducers({
entities,
routing,});
Then when I visit /pages root, then click then it only renders the "Next" button. Clicking "Next" throws the error.
A way around it initially was for me to not return null on the Previous link and to just do a "display: none" on it, which fixed the issue. Then I tried doing the things in #244 and things broke. Then I reverted back to my original code but removed this library since I'm not yet using it, and it works.