Skip to content

cozy-client / Query

Class: Query

Hierarchy

  • Component

    Query

Constructors

constructor

new Query(props, context)

Parameters

Name Type
props any
context any

Overrides

Component.constructor

Defined in

packages/cozy-client/src/Query.jsx:92

Properties

childrenArgs

childrenArgs: any[]

Defined in

packages/cozy-client/src/Query.jsx:164


client

client: CozyClient

Current client

Defined in

packages/cozy-client/src/Query.jsx:106


observableQuery

observableQuery: default

Observable query to connect store to query

Defined in

packages/cozy-client/src/Query.jsx:112


queryUnsubscribe

queryUnsubscribe: Function

Callback to unsubscribe from observable query

Defined in

packages/cozy-client/src/Query.jsx:118


contextTypes

Static contextTypes: Object

Type declaration

Name Type
client Requireable<object>
store Requireable<object>

defaultProps

Static defaultProps: Object

Type declaration

Name Type
enabled boolean

propTypes

Static propTypes: Object

Type declaration

Name Type
as Requireable<string>
children Validator<(…args: any[]) => any>
enabled Requireable<boolean>
fetchPolicy Requireable<(…args: any[]) => any>
query Validator<object>

Methods

componentDidMount

componentDidMount(): void

Returns

void

Overrides

Component.componentDidMount

Defined in

packages/cozy-client/src/Query.jsx:124


componentDidUpdate

componentDidUpdate(prevProps): void

Parameters

Name Type
prevProps any

Returns

void

Overrides

Component.componentDidUpdate

Defined in

packages/cozy-client/src/Query.jsx:146


componentWillUnmount

componentWillUnmount(): void

Returns

void

Overrides

Component.componentWillUnmount

Defined in

packages/cozy-client/src/Query.jsx:152


executeQueryRespectingFetchPolicy

executeQueryRespectingFetchPolicy(): void

Returns

void

Defined in

packages/cozy-client/src/Query.jsx:131


onQueryChange

onQueryChange(): void

Returns

void

Defined in

packages/cozy-client/src/Query.jsx:158


recomputeChildrenArgs

recomputeChildrenArgs(): void

Returns

void

Defined in

packages/cozy-client/src/Query.jsx:163


render

render(): any

Returns

any

Overrides

Component.render

Defined in

packages/cozy-client/src/Query.jsx:167