Skip to content

[ENHANCEMENT] Create routes from pages #3

@elliotBraem

Description

@elliotBraem

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions