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

[ENHANCEMENT] Create routes from pages #3

Open
elliotBraem opened this issue Mar 12, 2024 · 0 comments
Open

[ENHANCEMENT] Create routes from pages #3

elliotBraem opened this issue Mar 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@elliotBraem
Copy link

It'd be really cool if we could use the compiler to do something similiar to Next.js -- something like: components in "page" directory get compiled into routes (with ).

These pages remain normal widgets so they can hold state. useStore, useLocation, etc get's passed as prop to each page widget.

The devs.near/widget/App module and devs.near/widget/Router module currently use pages from an array to create these routes (although not lazily, as alem sorta does). This could be an easy integration for apps using this pattern

@wpdas wpdas added the enhancement New feature or request label Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants