Skip to content

Make "component" a required property for a route #1892

Closed
@danidee10

Description

@danidee10

What problem does this feature solve?

It improves the developer experience. Currently if a developer omits or misspells the component key of a route object ({ path: '/foo', Component: FooComponent }) Notice the Capital letter in Component.

No warning is shown (A blank page would be rendered since the path has no Component defined on it), There's already a warning if a developer tries to use a String as a Component. I believe this would also be useful as there's no point having a route that doesn't point to any Component.

What does the proposed API look like?

There's no change to the API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions