Skip to content

API Documentation / vuefire / _RefDatabase

Interface: _RefDatabase<T> ​

vuefire._RefDatabase

Type parameters ​

Name
T

Hierarchy ​

  • _RefWithState<T, Error>

    ↳ _RefDatabase

Properties ​

[RefSymbol] ​

• [RefSymbol]: true

Type differentiator only. We need this to be in public d.ts but don't want it to show up in IDE autocomplete, so we use a private Symbol instead.

Inherited from ​

_RefWithState.[RefSymbol]


stop ​

• stop: (reset?: ResetOption) => void

Stops listening to the data changes and stops the Vue watcher.

Type declaration ​

▸ (reset?): void

Parameters ​
NameType
reset?ResetOption
Returns ​

void

Inherited from ​

_RefWithState.stop

Accessors ​

data ​

• get data(): Ref<T, T>

Realtime data wrapped in a Vue ref

Returns ​

Ref<T, T>

Inherited from ​

_RefWithState.data


error ​

• get error(): Ref<undefined | E, undefined | E>

Reactive Error if the firebase operation fails

Returns ​

Ref<undefined | E, undefined | E>

Inherited from ​

_RefWithState.error


pending ​

• get pending(): Ref<boolean, boolean>

Reactive loading state

Returns ​

Ref<boolean, boolean>

Inherited from ​

_RefWithState.pending


promise ​

• get promise(): ShallowRef<Promise<T>>

Reactive promise that resolves when the data is loaded or rejects if there is an error

Returns ​

ShallowRef<Promise<T>>

Inherited from ​

_RefWithState.promise


value ​

• get value(): T

Returns ​

T

Inherited from ​

_RefWithState.value

• set value(_): void

Parameters ​

NameType
_S

Returns ​

void

Inherited from ​

_RefWithState.value

Released under the MIT License.