No Context when using hyper dom expressions

I've this strange behaviour that useCounter(CounterContext) returns undefined when porting the context example to use hyper dom expressions. Check codepen here: https://codepen.io/wrnrlr/pen/eYojdqV?editors=1011 Any ideas what I am doing wrong?
3 Replies
duk
duk8mo ago
Hi, don't know if you've already solved the error but I updated your solidjs/h version to match solidjs 1.8.16 in the importmap and replaced
props.children
props.children
with
() => props.children
() => props.children
in
CounterProvider
CounterProvider
which seems to fix it. Here is your updated codepen: https://codepen.io/davidivkovic/pen/MWRBJeR
FjordWarden
FjordWardenOP8mo ago
Ooh ffs, I look at this for two days, thx for ur help atleast
duk
duk8mo ago
Glad to help
Want results from more Discord servers?
Add your server