Skip to main content

Interface: AccessorCache#

Properties#

addAccessorChild#

• addAccessorChild: (parent: ProxyAccessor, child: null | ProxyAccessor) => void

Type declaration:#

â–¸ (parent: ProxyAccessor, child: null | ProxyAccessor): void

Parameters:#

NameType
parentProxyAccessor
childnull | ProxyAccessor

Returns: void

Defined in: packages/gqless/src/Cache/accessorCache.ts:30


addSelectionToAccessorHistory#

• addSelectionToAccessorHistory: (accessor: ProxyAccessor, selection: Selection) => void

Type declaration:#

â–¸ (accessor: ProxyAccessor, selection: Selection): void

Parameters:#

NameType
accessorProxyAccessor
selectionSelection

Returns: void

Defined in: packages/gqless/src/Cache/accessorCache.ts:23


getAccessor#

• getAccessor: (selection: Selection, cacheValue: unknown, proxyFactory: () => ProxyAccessor) => ProxyAccessor

Type declaration:#

â–¸ (selection: Selection, cacheValue: unknown, proxyFactory: () => ProxyAccessor): ProxyAccessor

Parameters:#

NameType
selectionSelection
cacheValueunknown
proxyFactory() => ProxyAccessor

Returns: ProxyAccessor

Defined in: packages/gqless/src/Cache/accessorCache.ts:11


getArrayAccessor#

• getArrayAccessor: (selection: Selection, reference: unknown[], proxyFactory: () => ProxyAccessor) => ProxyAccessor

Type declaration:#

â–¸ (selection: Selection, reference: unknown[], proxyFactory: () => ProxyAccessor): ProxyAccessor

Parameters:#

NameType
selectionSelection
referenceunknown[]
proxyFactory() => ProxyAccessor

Returns: ProxyAccessor

Defined in: packages/gqless/src/Cache/accessorCache.ts:16


getProxySelection#

• getProxySelection: (proxy: ProxyAccessor) => undefined | Selection

Type declaration:#

â–¸ (proxy: ProxyAccessor): undefined | Selection

Parameters:#

NameType
proxyProxyAccessor

Returns: undefined | Selection

Defined in: packages/gqless/src/Cache/accessorCache.ts:22


getSelectionSetHistory#

• getSelectionSetHistory: (accessor: ProxyAccessor) => undefined | Set<Selection>

Type declaration:#

â–¸ (accessor: ProxyAccessor): undefined | Set<Selection>

Parameters:#

NameType
accessorProxyAccessor

Returns: undefined | Set<Selection>

Defined in: packages/gqless/src/Cache/accessorCache.ts:27


isProxy#

• isProxy: (obj: any) => obj is ProxyAccessor

Type declaration:#

â–¸ (obj: any): obj is ProxyAccessor

Parameters:#

NameType
objany

Returns: obj is ProxyAccessor

Defined in: packages/gqless/src/Cache/accessorCache.ts:21

Last updated on by Sam Denty