SolidJSS
SolidJSโ€ข16mo agoโ€ข
4 replies
oc

createResource and createContext

Hey!

I want avoid prop-drilling for a large resource that is referenced and used by many leaf components.. is there any recommanded way of settinng up createResource with createContext.. i'm having trouble with useContext, as the leafs are rendered when the provider is not ready with a context value.. what is best-pratice or an idomatic way to combine these two primitives together?
Was this page helpful?