thesamsterau
How to type the context from the docs example
Thank you, I am beginning to understand how the typing works.
I have a question: can I use SolidJS stores inside a context? I have tried but cannot seem to get past the TypeScript errors. Here is my attempt:
https://playground.solidjs.com/anonymous/0375fc53-4580-46fa-b409-546982454524
17 replies
How to type the context from the docs example
While that takes care of the error in
value
, there's another error when I try to use the context. Please take a look at your playground.
I want to use Context in a typesafe way, but it feels like I am missing some knowledge.17 replies
How to type the context from the docs example
Here's the playground: https://playground.solidjs.com/anonymous/8b3a8f18-f97d-444a-aa9b-4071dcbc3431
17 replies