Help with context and storybook
Any advice/guess why the consumer is not receiving the value i set on provider and instead got the default value? It definitely works in dev...
Thanks.
9 Replies
use theme signal impl:
This is a funny one, you're calling the
Story()
outside of the provider, so it doesn't have accesswait...
It might work to just pass
Story
without calling it
since functions as children is validah is that so
You'd be better off just using JSX though if possible
well, i tried with jsx though but still not getting the value
eh nvm
forgot to pass the value, haha so dumb
wait, so what is the equivalent of
in non JSX?
Something like
Or
with some extra memoisation on
children
that jsx automatically insertsaha
many thanks for your help man 🙏