Page router doesn't mount components. Refresh needed to properly mount.
Korab-Doroci opened this issue · comments
Korab commented
Tero Piirainen commented
Thanks! Need to check this out
Maciej Szmida commented
@Korab-Doroci The Nue layout system is based on <header>
, <main>
and <footer>
tags. Page router is searching for these tags to replace its content.
In your example code should look like this:
// index.html
<main>
<a href="/page">go to page</a>
</main>
// page/index.html
<main>
<component />
</main>
However the page router indeed does not mount components correctly. I prepared a PR with fix for this functionality in #271.