Markus Geilehner
Pre-Render not pre rendering
Hi 🙋
I stumpled across a weird problem. My pre-rendered Routes are not working anymore. Havent found anything in the release notes - but the following code worked in previous versions / other projects.
I am pre-rendering 2 routes on build, but the .html file generated are kind of empty:
I am using the 'nitro:config' hook to dynamically add routes to pre-render, which seems to work.
Any ideas why the routes are not pre-renderd? When running on DEV the routes work in SSR.
2 replies
Composable used in Component is not reactive
I created a composable "useTimeRecordings()" where I manage state of a few fields e.g.:
And in my component I am using:
And this value is not updated. Any idea why? I am assigning the array correctly, I am using computed props as return and yeah. 🤔
Is it because i am not "awaiting" the records? 🤔
5 replies