Open fprl opened 3 weeks ago
Okay I fixed the issue but I don't get why its happening. In the two components I had this issue I had something (function or const) declared in the same file and it was consumed inside the component(s). In the show-more component case, the context... once I move it to an external file and import it, everything worked. I'm not sure if this is my error in the tsconfig, or something related to vite bundling things or qwik not pointing to the right thing.
Which component is affected?
Qwik Runtime
Describe the bug
Hi everyone!
I have a monorepo setup where i'm importing some Qwik components. All of them work as expected except for two, which interferes with the rest of the logic of the component they are called.
When I import my component from
@ooakt/ui/show-more
inside a component that has some state, the show-more component works but the rest of the state/logic doesn't.I tracked the error down to the
useContextProvider
in the show-more component. If I remove that line, the rest of the component where the show more is used works as expected.Reproduction
Steps to reproduce
PS: Don't test in dev mode, it works there!
System Info
Additional Information
No response