4Catalyzer/found

Question: Weird behaviour for Not found

0xHexE opened this issue · 2 comments

I have the following routeConfig.

[
  {
    path: '/test',
    Component: () => <p>Test</p>,
  },
  {
    path: '/test2',
    Component: () => <p>Test2</p>,
  },
]

I have an example here https://stackblitz.com/edit/react-ts-vzxs8c

https://react-ts-vzxs8c.stackblitz.io/test

https://react-ts-vzxs8c.stackblitz.io/ Gives me 404, but it is matching / App right then why it is giving a not found page? We should pass not found to the App instead?

If I want to configure it in this way what should I do?

I was about to report another bug. But found another related to #961. When you change the URLs using the button, it is not showing working.

And the bug I was going to report was, It is rendering dom when we change the route. It renders again the app and another one too which leads to loose states like focus and all.

puchm commented

Can you check what it's like if you change the createRoot part to the old ReactDOM.render way? E.g. see this comment: #968 (comment)