(router) unstable_renderRoute causes a React error when jumping to a new page
dai-shi opened this issue · 2 comments
dai-shi commented
While working on #931, I noticed this issue. Did a hack but it broke another typical case. So, the issue is left for now.
How to reproduce
npm run examples:dev:07_router
- Click
Foo
- Click
Jump to random page
If it goes to Jumping to /nested/bbb
, the following error is shown.
![image](https://private-user-images.githubusercontent.com/490574/373476920-3783b14e-eaca-4dbc-84cd-9f0217b6fcf8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4ODgzNzMsIm5iZiI6MTczODg4ODA3MywicGF0aCI6Ii80OTA1NzQvMzczNDc2OTIwLTM3ODNiMTRlLWVhY2EtNGRiYy04NGNkLTlmMDIxN2I2ZmNmOC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwN1QwMDI3NTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hNzlhOTQ3ZTQ1ZDg0YzQ2NTNmZGQyYjFjMmNiZGI3MzQ5NzAxMmE1OGIxNTIwMTAxOTE3YjdmZjJjMDViZTQ2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.1Et-WWRiaUMgttf9RM6Y1n3lN9nPKqdTh9HZyq6IbUY)
kulkarnisaumitra98 commented
@dai-shi I think this bug doesn't seem to be valid anymore, in the lastest version 0.21.9, for the 21_create-pages example it doesn't seem to be reproducing after going to /nested/bbb
dai-shi commented
Nice catch. Thanks for confirming!