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

Improve Router and separate it from Layout #108

Open
lgk-bsw opened this issue Jul 22, 2022 · 0 comments
Open

Improve Router and separate it from Layout #108

lgk-bsw opened this issue Jul 22, 2022 · 0 comments

Comments

@lgk-bsw
Copy link
Member

lgk-bsw commented Jul 22, 2022

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
lgk-bsw added a commit that referenced this issue Jul 22, 2022
lgk-bsw added a commit that referenced this issue Jul 22, 2022
lgk-bsw added a commit that referenced this issue Jul 22, 2022
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

1 participant