Skip to content

Resource

Represents an external resource fetched asynchronously.

dataT | null

The data if it’s been loaded successfully. Null when not yet loaded or there was an error.

errornull | Error

The error loading the resource, if any.

loadingboolean

Whether the resource is still being fetched.