Skip to content

API reference > @kontsedal/olas-core > QueryDisabledError

QueryDisabledError class ​

refetch() was called on a subscription whose enabled is false. A disabled subscription has no entry to fetch; its key may not even be computable yet. Filter this error, or disable the control whilesubscription.isEnabled.value is false.

Signature:

typescript
export declare class QueryDisabledError extends Error

Extends: Error

Constructors ​

Constructor

Modifiers

Description

(constructor)(queryId)

Constructs a new instance of the QueryDisabledError class

Properties ​

Property

Modifiers

Type

Description

queryId

readonly

string

The query's id.

Released under the MIT License.