Resource has wrong types?
Please take a look at this example: https://playground.solidjs.com/anonymous/1c0baf1f-20e7-4bc8-a878-6afe824ce4c1
In the
createEffect
, the type of shouldBeUndefinedButItsNot
is number
, but console writes undefined
on first run. Am I misusing createResource
?Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
3 Replies
looks like a bug indeed
maybe the state should be
"unresolved"
when the resource didn't have a chance to run the fetcheryeah, this took a while to debug, since I also had an error come up in one of the resources...
it should definitely not be
ready
if it hasn't even started to fetch yet, for sureseems related to your issue https://github.com/solidjs/solid/issues/1725
GitHub
undefined
initial value changes initial resource state to `refres...Describe the bug Normally The resources start at "rending" state before they become "ready". When the initial value is passed the resources start at "refreshing", as i...