#
Class: EventHandler#
Constructors#
constructor+ new EventHandler(): EventHandler
Returns: EventHandler
#
Properties#
hasFetchSubscribers• hasFetchSubscribers: boolean= false
Defined in: packages/gqless/src/Events/index.ts:32
#
onCacheChangeListeners• Private
onCacheChangeListeners: Set<OnCacheChangeEventFn>
Defined in: packages/gqless/src/Events/index.ts:35
#
onFetchListeners• Private
onFetchListeners: Set<OnFetchEventFn>
Defined in: packages/gqless/src/Events/index.ts:33
#
Methods#
onCacheChangeSubscribeâ–¸ onCacheChangeSubscribe(fn
: OnCacheChangeEventFn): function
#
Parameters:Name | Type |
---|---|
fn | OnCacheChangeEventFn |
Returns: () => void
Defined in: packages/gqless/src/Events/index.ts:48
#
onFetchSubscribeâ–¸ onFetchSubscribe(fn
: OnFetchEventFn): function
#
Parameters:Name | Type |
---|---|
fn | OnFetchEventFn |
Returns: () => void
Defined in: packages/gqless/src/Events/index.ts:58
#
sendCacheChangeâ–¸ sendCacheChange(data
: CacheChangeEventData): void
#
Parameters:Name | Type |
---|---|
data | CacheChangeEventData |
Returns: void
Defined in: packages/gqless/src/Events/index.ts:37
#
sendFetchPromiseâ–¸ sendFetchPromise(data
: Promise<FetchEventData>, selections
: Selection[]): void
#
Parameters:Name | Type |
---|---|
data | Promise<FetchEventData> |
selections | Selection[] |
Returns: void
Defined in: packages/gqless/src/Events/index.ts:41