-
Hi 👋 , With qwik-speak you can't write:
Instead you have to write:
I think this should be stated more clearly than only a comment in the quick start exemple :p. Or add a warning if translation is used like in the 1st exemple ? What is the reason we need to create sub component ? Thanks ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @PacoDu, good question. I too find it tedious to create a child component, but this seems to be the behavior of Slots in Qwik are symbolic, allowing Qwik to render parents and children in perfect isolation, allowing to render the parent component without ever rerender the childrens and vice versa. Due to their isolation, it can be observed that Qwik renders direct child components and the Maybe this behavior will change in the future, but you're right: I need to explain it better in the documentation. |
Beta Was this translation helpful? Give feedback.
Hi @PacoDu,
good question. I too find it tedious to create a child component, but this seems to be the behavior of
Slot
components (such asSpeak
component) in Qwik. From the docs:Slots in Qwik are symbolic, allowing Qwik to render parents and children in perfect isolation, allowing to render the parent component without ever rerender the childrens and vice versa.
Due to their isolation, it can be observed that Qwik renders direct child components and the
Speak
component asynchronously, so that theassets
loaded by theSpeak
component are not immediately available to direct children.Maybe this behavior will change in the future, but you're right: I need to explain it better in the docum…