createResource not updating on error
I can't seem to figure out how exactly createResource is supposed to work when the fetcher throws an error, this is the barest reproduction I can do
![](https://cdn.answeroverflow.com/1126300502817247353/image.png)
![](https://cdn.answeroverflow.com/1126300503786147890/image.png)
4 Replies
Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
The documentation is unfortunately a bit confusing. Resources are lazily evaluated, so they only ever call the fetcher if they are used. However, if they are used and the fetcher rejects with an error, they will throw it against the next boundary, so either set that up or guard the evaluation of the resource with a
!resource.error
condition.
thanks.
Happy to help 🙂