TootLoader.svelte

view source

Declarations
#

TootLoader
#

TootLoader.svelte view source

accepts children

import TootLoader from '@fuzdev/fuz_mastodon/TootLoader.svelte';

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 default false

include_replies?

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

type boolean
optional default false

cache?

Optional API result cache.

type Map<string, { key: string; url: string; params: any; value: any; etag: string | null; last_modified: string | null; }>
optional

log?

Optional logger for network calls.

type Logger
optional

loading?

type boolean
optional bindable

item?

optional bindable

status_context?

optional bindable

replies?

type MastodonStatus[]
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 | ReplyFilter[] | CreateReplyFilters
optional

load_time?

type number
optional bindable

children

type Snippet<[{ item: MastodonStatus | null | undefined; status_context: MastodonStatusContext | null | undefined; replies: MastodonStatus[] | null | undefined; load: () => Promise<...>; loading: boolean | undefined; load_time: number | undefined; }]>
snippet parameters
arg0 { item: MastodonStatus | null | undefined; status_context: MastodonStatusContext | null | undefined; replies: MastodonStatus[] | null | undefined; load: () => Promise<...>; loading: boolean | undefined; load_time: number | undefined; }

Depends on
#