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
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