react-isomorphic-starterkit icon indicating copy to clipboard operation
react-isomorphic-starterkit copied to clipboard

React Router Reloads Page on First Click

Open mannynotfound opened this issue 9 years ago • 7 comments

Hi there,

Was trying to use a modified version of this kit to set an isomorphic SPA but started encountering a problem where the page refreshed the first time I clicked a react-router Link component. Thought I had borked something, but I was able to re-produce on a fresh install only modifying the main page to have 2 links to different routes. Not sure if an issue with koa, react-router or webpack, currently investigating. You can see the error if you run my fork, and specifically the changes I made are here.

• Browsers Tested: Latest Chrome, Latest Firefox • Node version: 5.2.0 • Npm version: 3.3.12

Any help greatly appreciated, thanks! :fist:

mannynotfound avatar Feb 28 '16 19:02 mannynotfound

@mannynotfound have you solved this?

kulikalov avatar Jan 21 '17 07:01 kulikalov

@RickWong any guesses?

kulikalov avatar Jan 24 '17 16:01 kulikalov

@anton-aleksandrov No code = no idea. Sorry.

RickWong avatar Jan 24 '17 16:01 RickWong

@RickWong you've probably missed this in first message:

You can see the error if you run my fork, and specifically the changes I made are here.

kulikalov avatar Jan 24 '17 17:01 kulikalov

fork commit

kulikalov avatar Jan 24 '17 17:01 kulikalov

@RickWong if this code is not what you mean, could you specify what exactly is not clear? i'll gladly provide more examples or will point on specific places in the provided code

kulikalov avatar Jan 25 '17 15:01 kulikalov

I can confirm that I am seeing this same issue.

nicksrandall avatar Feb 10 '17 17:02 nicksrandall