This repository has been archived by the owner on Dec 5, 2024. It is now read-only.
fix: functions passed into beforeNuxtRender are not getting called #659
Labels
bug
Something isn't working
π The bug
I think the beforeNuxtRender is not getting called at the right place when it is placed in the setup function.
π οΈ To reproduce
I'm using this code:
And in the generated server.js I've place two console.log statment like this:
After this, the printed server output is the following:
The frontend not printing 'beforeRenderFn1' or 'beforeRenderFn2' either.
π Expected behaviour
The function which had been passed into beforeNuxtRender should be called when the server.js calls the beforeRender and all the beforeRenderFns. The console output should be reversed: the in setup part should come first and the beforeRender part after. According to this closed issue it has been also suggested that is should work when placed in the setup function.
The text was updated successfully, but these errors were encountered: