[🐞] SSR does not list signal effects as qprefetch #7311
Labels
COMP: performance
This issue is related to a performance problem or bug
TYPE: bug
Something isn't working
VERSION: upcoming major
Which component is affected?
Qwik Runtime
Describe the bug
While running SSR, we keep track of QRL handlers, and we'll instruct the preloader to get those handlers and their import graph.
However, any signals that are written to will have effect qrls, and those aren't listed for preloading.
So we need to keep track of those and add them to the preload list at the end of the container.
Note that Qwik Insights works around this problem because it will learn that clicking that button will change that signal, which will import the component render function.
Also, it would be great if we knew which signals will be written to for a given SSR output, because then we know whether to include effects or not.
The text was updated successfully, but these errors were encountered: