Liking cljdoc? Tell your friends :D

apollo.react


childrencljs

(children component)

Returns the children of the component.

Returns the children of the `component`.
raw docstring

class-methodsclj

(class-methods ast)

clientcljs

(client component)

Returns the environment of component.

Returns the environment of `component`.
raw docstring

component?cljs

(component? x)

Returns true if the argument is an Apollo component.

Returns true if the argument is an Apollo component.
raw docstring

conform!clj

(conform! spec data)

Like clojure.spec.alpha/conform, but raises an exception if data doesn't conform to spec.

Like `clojure.spec.alpha/conform`, but raises an exception if `data`
doesn't conform to `spec`.
raw docstring

create-elementcljs

(create-element class & [env props & children])

Create a React element of class for env, props and children.

Create a React element of `class` for `env`, `props` and `children`.
raw docstring

defuiclj/smacro

(defui class-sym & methods)

Define a Relay component.

Define a Relay component.
raw docstring

defui*clj

(defui* form)
(defui* env class-sym methods)

Define a Relay component.

Define a Relay component.
raw docstring

emit-constructorclj

(emit-constructor env ast)

Emit the constructor of the component.

Emit the constructor of the component.
raw docstring

envcljs

(env component)
(env component & ks)

Returns the environment of component.

Returns the environment of `component`.
raw docstring

fetch-more!cljs

(fetch-more! component id & [opts])

Fetch more results for the given query id.

Fetch more results for the given query `id`.
raw docstring

fragmentscljs

(fragments component)
(fragments component & ks)

Returns the GraphQL fragments of component.

Returns the GraphQL fragments of `component`.
raw docstring

IComponentcljsprotocol

component-will-receive-propscljs

(component-will-receive-props this next-props)

should-component-updatecljs

(should-component-update this next-props next-state)

component-did-mountcljs

(component-did-mount this)

component-did-updatecljs

(component-did-update this prev-props prev-state)

component-will-updatecljs

(component-will-update this next-props next-state)

rendercljs

(render this)

init-local-statecljs

(init-local-state this)

component-will-unmountcljs

(component-will-unmount this)

component-will-mountcljs

(component-will-mount this)

IFragmentcljsprotocol

fragmentcljs

(fragment this)

Returns the GraphQL fragments of the component.

Returns the GraphQL fragments of the component.

IMutationcljsprotocol

mutationcljs

(mutation this)

Returns the GraphQL mutations of the component.

Returns the GraphQL mutations of the component.

IQuerycljsprotocol

querycljs

(query this)

Returns the GraphQL query of the component.

Returns the GraphQL query of the component.

IReactKeycljsprotocol

react-keycljs

(react-key this props)

Returns the React key of the component.

Returns the React key of the component.

IVariablescljsprotocol

variablescljs

(variables this props query)

Returns the GraphQL variables for the query.

Returns the GraphQL variables for the `query`.

mutate!cljs

(mutate! component id & [opts])

Evaluate the components GraphQL mutation with the given id using opts and return a promise.

Evaluate the `component`s GraphQL mutation with the given `id` using
`opts` and return a promise.
raw docstring

mutationscljs

(mutations component)
(mutations component & ks)

Returns the GraphQL mutations from component..

Returns the GraphQL mutations from `component`..
raw docstring

propscljs

(props component)
(props component & ks)

Returns the props of component.

Returns the props of `component`.
raw docstring

prototype-methodsclj

(prototype-methods ast)

queriescljs

(queries component)
(queries component & ks)

reset-store!cljs

(reset-store! component)

Reset the client store.

Reset the client store.
raw docstring

set-state!cljs

(set-state! component new-state)

Set the component local state of the component. Analogous to React's setState.

Set the component local state of the component. Analogous to React's
setState.
raw docstring

set-variables!cljs

(set-variables! component query variables & [opts])

Set the variables of the query.

Set the `variables` of the `query`.
raw docstring

specify-class-prototype!cljs

(specify-class-prototype! class)

statecljs

(state component)
(state component & ks)

Get a component's local state. May provide a single key or a sequential collection of keys for indexed access into the component's local state.

Get a component's local state. May provide a single key or a sequential
collection of keys for indexed access into the component's local state.
raw docstring

subscribe-queriescljs

(subscribe-queries component props)

Subscribe to all queries of component.

Subscribe to all queries of `component`.
raw docstring

unsubscribe-queriescljs

(unsubscribe-queries component)

Unsubscribe from all queries of component.

Unsubscribe from all queries of `component`.
raw docstring

update-state!cljs

(update-state! component f)
(update-state! component f arg0)
(update-state! component f arg0 arg1)
(update-state! component f arg0 arg1 arg2)
(update-state! component f arg0 arg1 arg2 arg3)
(update-state! component f arg0 arg1 arg2 arg3 & arg-rest)

Update a component's local state. Similar to Clojure(Script)'s swap!

Update a component's local state. Similar to Clojure(Script)'s swap!
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close