[🐞] Actual value for useContext() can not be found
, when using nested context provider components, that dynamically shows children using <Slot/>
#7186
Labels
Which component is affected?
Qwik Runtime
Describe the bug
I found this issue when I am trying to write some abstract components acting as control flow such like
<If/>
,<Then/>
Here is what I wanted to do.
This is almost working but the
<Then/>
caused unexpected error that I have titled.While the detail is in the reproduction URL, it might be the dynamic conditional
<Slot/>
inside the multiple hierarchical context provider components is not treated nicely.It may be relating to #3531
Reproduction
https://qwik.dev/playground/#f=7VdNS8NAEL37K0oOpYXFerAgaZMQBSEG9CCCEHIotoFiaaVNoRL2vztvdrOZxlj0pmAvm25m33y9nZlI0ozHV02mQF7VkEC16KbuHp8f9iXRWjXkFI81T09SjrP%2FhHYYcFBQs3w7KUzoP13yyLd9BNFneaMVbWyahnQwpdpEl3e%2B670u3jcF49HZiB%2ByNHevncX0Lu0R7gLlz64TAx6X5ZZMf9tNCSLuQHZbyzUVWsKJWgZZPHUG2%2BDUjCD9Xgz7zwwZXsqDdbp9h7EdDjxMCB7lx4knRYew84dOLAvI2wNAuSkPOCIucQVU7fPiQ0Q7MnaUF2uj4mmFoJu7D2IQgfRQqkPcjvUhgF2p%2BUEABxVip%2F0mKWnobDa6eZYKZK20hkuTWSjiJQNiTjpoVlgU1LLmpnRZV5Li9zpjZKjr0DzBQqd8%2BiqnSaEsRGRX3K%2FVSobL7Pf7ItUuQNSk1y1etZwQBgovkuKTBhv477SdJjw7Zm6Wk4KMa1nFNcO73Ww8reTO9WzrKVQQ%2F%2FKC3%2BSCw%2FiUMcIMek4D%2B2CwV0unEb9auL5OEA2qvRYl1uHY%2F%2FiUCe%2BhfzriZ7PDEMwqpCrwYKE3Cq2MBBAENKLkgCclaiUxOXasA6npxBw1oMJ0%2FpxzzcH6aDb0UNNqJP47%2B1%2Ft7B8
Steps to reproduce
Please visit the link above and it causes the error.
System Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: