useContext returns undefined.
Hey I created a Provider and a context to manage figlet fonts.
This provider is just a "singleton"-reference to my FontRegistry.
FontProvider + useFonts:
Child-Component:
For some reason
useContext
returns undefined.
I use Astro for this, but even in client:only
mode it does not work.
Astro page:
0 Replies