juliuscc / speak.exchange

An online bilingual dictionary, which also offer a flashcard app geared towards learning new words in a foreign language.
https://speak.exchange/
MIT License
2 stars 0 forks source link

Refreshing on view deck crashes #139

Closed juliuscc closed 4 years ago

juliuscc commented 4 years ago

Go to https://speak.exchange/view-deck?id=pZa3RZC5S1HSXbJ2o7Vi to reproduce.

blendaf commented 4 years ago

Do not get this error on the localhost. The problem also exists when refreshing on edit deck. Can be recreated locally by running. npm run ci-build and npx serve out

blendaf commented 4 years ago

This is because router.query is undefined on the first render: https://github.com/zeit/next.js/discussions/11484

blendaf commented 4 years ago

fixed by structure update