Skip to content

Why scoped translation is only available in child component ? #44

Closed Answered by robisim74
PacoDu asked this question in Q&A
Discussion options

You must be logged in to vote

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 as Speak 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 the assets loaded by the Speak 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…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@PacoDu
Comment options

Answer selected by PacoDu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants