Options to the resource function, for creating a resource.
request
(() => R) | undefinedA reactive function which determines the request to be made. Whenever the request changes, the loader will be triggered to fetch a new value for the resource.
If a request function isn't provided, the loader won't rerun unless the resource is reloaded.
loader
ResourceLoader<T, R>Loading function which returns a Promise of the resource's value for a given request.
equal
ValueEqualityFn<T> | undefinedEquality function used to compare the return value of the loader.
Jump to details

