Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Weird behaviour for Not found #962

Open
0xHexE opened this issue Apr 21, 2022 · 2 comments
Open

Question: Weird behaviour for Not found #962

0xHexE opened this issue Apr 21, 2022 · 2 comments

Comments

@0xHexE
Copy link

0xHexE commented Apr 21, 2022

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
Copy link
Author

0xHexE commented Apr 21, 2022

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
Copy link

puchm commented Apr 29, 2022

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants