Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Resource with createContext? - SolidJS
S
SolidJS
โข
3y ago
โข
3 replies
theshadowboxers
Resource with createContext?
What is the correct way to return a Resource from a context
? If you don
't provide an initial value then you get an error when trying to call the
undefined
undefined
returned from the useContext call as a function
, but if you provide an initial value of
() => {}
() => {}
it seems that the context isn
't updated reactively when the value
createResource
createResource
accessor is passed to the value prop of the provider
?
SolidJS
Join
Solid is a declarative reactive Javascript library for creating user interfaces.
12,274
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
issues with createContext and useContext
S
SolidJS / support
2y ago
createResource and createContext
S
SolidJS / support
2y ago
`createContext`, What's the point?
S
SolidJS / support
2y ago