SolidJSS
SolidJSโ€ข11mo agoโ€ข
8 replies
anthy

resource.error works unexpectedly

Consider this sample: https://playground.solidjs.com/anonymous/095fcbf7-6807-4c6b-ac41-223a5f2fde21

Per docs: data.error: if the request has errored out. createResource: provides an Error object for data.error. It will show even if the fetcher throws something else. If the fetcher throws a string, data.error.message will contain that string.

I would expect the div with the error string be rendered to the dom but its not the case
Quickly discover what the solid compiler will generate from your JSX template
Was this page helpful?