TootLoader.svelte

Declarations
#

view source

TootLoader
#

TootLoader.svelte view source

host

The host part of the url, like 'mastodon.ryanatkn.com'.

type string | null

id

The status id to fetch, like '110702983310017651'.

type string | null

include_ancestors?

Whether to fetch and display the ancestors in the status context.

type boolean
optional

include_replies?

Whether to fetch and display replies aka descendants in the status context.

type boolean
optional

cache?

Optional API result cache.

type FetchValueCache | null | undefined
optional

log?

Optional logger for network calls.

type Logger | undefined
optional

loading?

type boolean | undefined
optional bindable

item?

type MastodonStatus | null | undefined
optional bindable

status_context?

type MastodonStatusContext | null | undefined
optional bindable

replies?

type Array<MastodonStatus> | null | undefined
optional bindable

reply_filter?

Get a list of rules that controls whether replies are shown or not. If omitted, all replies are included.

type ReplyFilter | Array<ReplyFilter> | CreateReplyFilters | null
optional

load_time?

type number | undefined
optional bindable

children

type Snippet< [ { /** * `null` here is a failed loading condition. */ item: MastodonStatus | null | undefined; /** * `null` here is a failed loading condition. */ status_context: MastodonStatusContext | null | undefined; /** * `null` here is a failed loading condition for `item` or `status_context`. */ replies: Array<MastodonStatus> | null | undefined; load: () => Promise<void>; loading: boolean | undefined; load_time: number | undefined; }, ] >

Depends on
#

Imported by
#