CJY0208 / react-router-cache-route

Route with cache for react-router V5 like <keep-alive /> in Vue
https://www.npmjs.com/package/react-router-cache-route
MIT License
1.16k stars 113 forks source link

配合redux使用的时候会报错 #93

Closed bihongbin3027 closed 4 years ago

bihongbin3027 commented 4 years ago

image image

bihongbin3027 commented 4 years ago

Uncaught Error: Rendered fewer hooks than expected. This may be caused by an accidental early return statement

CJY0208 commented 4 years ago

看起来是 hooks 使用的问题,应该与 cache-route 本身无关

bihongbin3027 commented 4 years ago

是我使用的有问题