found icon indicating copy to clipboard operation
found copied to clipboard

Question: Weird behaviour for Not found

Open 0xHexE opened this issue 3 years ago • 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?

0xHexE avatar Apr 21 '22 15:04 0xHexE

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.

0xHexE avatar Apr 21 '22 15:04 0xHexE

Can you check what it's like if you change the createRoot part to the old ReactDOM.render way? E.g. see this comment: https://github.com/4Catalyzer/found/issues/968#issuecomment-1113285768

puchm avatar Apr 29 '22 13:04 puchm