Closed ziongh closed 2 weeks ago
Your example app is not loadable in Stackblitz for us to observe and assess the behaviour described.
Please add a minimal reproducible example for us to be able to correctly observe what's happening. You can create a minimal example using the Router file-based stackblitz starter.
Here are some guidelines you can follow when creating a minimal reproducible example: https://stackoverflow.com/help/mcve
That's because I'm using Farm that is written in rust, and Stackblitz does not support native code.
However you can use the github codespace to run the code (pnpm install
then pnpm start
). Or build on your local machine too.
I can make a different branch using Vite instead of farm, but the result is the same.
Similar to my comment here, the reproducible example needs to be just enough to recreate the error, without all extra dependencies, unneeded code, and other fluff.
Sorry about that, It seems that the error reported here (and here: #1539) is related to using preact instead of react.
@ziongh ahhhh, understood. Closing for now.
If you run into this again using React, and want to reopen this issue ping me here, or simply create a new issue referencing this issue.
Describe the bug
When using the router and navigating from the base address into the child routes, the system behaves as expected.
But when we open the browser into a specifc route and then navigates to another route, the router returns the component of
notFoundComponent
.Your Example Website or App
https://github.com/ziongh/example-farm-tanstack-reatom
Steps to Reproduce the Bug or Issue
notFoundComponent
).Expected behavior
As a user, I would expect the route to open normally.
Screenshots or Videos
No response
Platform
Additional context
No response