We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
These two codes run fine :
render(() => ( <Router> <Route path="/" component={Test} /> </Router> ), root);
render(() => ( <Router> <Route path="/" component={<Test />} /> </Router> ), root);
However, the moment you use any route hook, the second code fails.
X
Run the code
It should either fails every time or works every time.
No response
The text was updated successfully, but these errors were encountered:
Yeah.. it should never be:
We are expecting component functions. It's a shame if the typescrupt can't determine the difference.
Expressions in Solid lazy evaluate so you aren't going to hit this probably until you go to the route. So this all makes sense.
From a runtime perspective it should be trying to call it with the route props
Sorry, something went wrong.
No branches or pull requests
Describe the bug
These two codes run fine :
However, the moment you use any route hook, the second code fails.
Your Example Website or App
X
Steps to Reproduce the Bug or Issue
Run the code
Expected behavior
It should either fails every time or works every time.
Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: