Closed adrianha closed 7 years ago
Try to move the slashes out of the regex:
const localeRegExp = ':locale(id|en)?';
routes.add('index', `/${localeRegExp}`);
routes.add('search', `/${localeRegExp}/search/:urlName`);
Hi @fridays , the issue is still occurred.. When i changed content on pages/index.js, it will do full-reload
Please provide a sample repo @adrianha
Heres the sample repo: https://github.com/adrianha/next-routes-demo If i made changes on pages/index, it will do full reload.. @fridays You can run the repo by using: npm run dev:custom
Thanks for reporting this, please update to version 1.0.39
Great! Thank you very much @fridays !
Hi, I'm facing an issue that HMR is not working when using next-routes. It will do full reload instead. I already followed the example given on the readme.
Here's my implementation:
routes.js
server.js
Any idea about this?