Type Alias: ResourceOptions
ResourceOptions =
object
Defined in: utils.ts:16
Options accepted by useResourceDownload and by every use<Task> hook
built on top of it.
Properties
forceDownload?
readonlyoptionalforceDownload:boolean
Defined in: utils.ts:24
Re-downloads every remote source even when it is already cached, replacing the cached copy. Use to recover from a corrupted file or to pick up a model that changed behind a stable URL.
preventLoad?
readonlyoptionalpreventLoad:boolean
Defined in: utils.ts:18
If true, prevents checks and downloads, resetting the hook state.