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
Currently, route's component can be null and it give no information and error. Provide information or raising error can help users to catch they have some import issues when they use
import * as components from './components' export default [ { path: '/accounts', component: components.AccountsListView, name: 'accountsListView' }, { path: '/accounts/create', component: components.CreateEditAccounts, name: 'createAccounts' } ]
So if components.CreateEditAccounts is null, they will know what went wrong easier.
components.CreateEditAccounts
Raise error when component is null or log info message.
The text was updated successfully, but these errors were encountered:
for anybody picking this up: make sure to check it only in dev mode
Sorry, something went wrong.
I will try to implement this the next week if nobody would be faster than me
There's already a pr 😉
Note to myself, this could be solved through typings
This issue also produces unexpected behavior when routes without components have child routes. See #2908.
@posva The MR for this is 18 months old. Can we close that and remove the has PR label?
has PR
I see that no one had touched this issue since March. May I try?
No branches or pull requests
What problem does this feature solve?
Currently, route's component can be null and it give no information and error. Provide information or raising error can help users to catch they have some import issues when they use
So if
components.CreateEditAccounts
is null, they will know what went wrong easier.What does the proposed API look like?
Raise error when component is null or log info message.
The text was updated successfully, but these errors were encountered: