Interface ObjectUrlState

The reactive state returned by useObjectUrl.

interface ObjectUrlState {
    error: null | FsError;
    loading: boolean;
    url: null | string;
}

Properties

Properties

error: null | FsError

The FsError if the read failed (not-found, unavailable, …), else null.

loading: boolean

True while the file is being read.

url: null | string

The object URL once the bytes have loaded; null while loading or on error.