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
thetarnav
thetarnav2y ago
looks like a bug indeed maybe the state should be "unresolved" when the resource didn't have a chance to run the fetcher
deluksic
deluksicOP2y ago
yeah, 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 sure
deluksic
deluksicOP2y ago
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...
Want results from more Discord servers?
Add your server