You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a popular framework NextJS, it's also a web dev server to making static web applications (so in production you get just statics), but it allows you to use quite cool routing system where file tree translates into actual routes in browser, while bringing performance of a Single Page Application (because browser doesn't actually load a whole page, like in 2008, but loads little json files related to a page, and replaces the content on fly, - like in a typical SPA, but routes aren't stored in a single file like in react-router, and file system is used for that, - which is much more convenient):
But unfortunatelly NextJS doesn't allow to import .as files directly, so I'd like to use Zwitterion with NextJS actually, - so I can easily import AssemblyScript from my components (instead of having some build pipeline AssemblyScript -> WASM), yet I can have this precious routing system... But it seems it's not so easily possible.
Alternatively, it would be cool to have exact same way to handle routes like NextJS, though not using NextJS directly (maybe use a library that they use for handling routes???)
If anyone tried to tie it both together and resulted into something working, please let me know!
The text was updated successfully, but these errors were encountered:
There's a popular framework NextJS, it's also a web dev server to making static web applications (so in production you get just statics), but it allows you to use quite cool routing system where file tree translates into actual routes in browser, while bringing performance of a Single Page Application (because browser doesn't actually load a whole page, like in 2008, but loads little json files related to a page, and replaces the content on fly, - like in a typical SPA, but routes aren't stored in a single file like in
react-router
, and file system is used for that, - which is much more convenient):But unfortunatelly NextJS doesn't allow to import
.as
files directly, so I'd like to use Zwitterion with NextJS actually, - so I can easily import AssemblyScript from my components (instead of having some build pipeline AssemblyScript -> WASM), yet I can have this precious routing system... But it seems it's not so easily possible.Alternatively, it would be cool to have exact same way to handle routes like NextJS, though not using NextJS directly (maybe use a library that they use for handling routes???)
If anyone tried to tie it both together and resulted into something working, please let me know!
The text was updated successfully, but these errors were encountered: