Skip to content

Improve Router and separate it from Layout #108

@lgk-bsw

Description

@lgk-bsw

I plan to improve Blue React's Routing System.

  • Separate it from the <Layout /> component to make it optional to use
  • Rename prop pages to routes
  • Allow to declare possible params
  • Easy access to param values via param names
    • Like const { myProp } = useParams() instead of const myProp = window.blueLayoutRef.state.match[1]
    • Better TypeScript support

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