(app-load-index app gql-env idx-atom)
Use this on your started-callback to load the indexes
Use this on your started-callback to load the indexes
(batch-network network)
(batch-network network delay)
Wraps a network send calls with a debounce that will accumulate, merge and batch send requests in a time frame interval.
Wraps a network send calls with a debounce that will accumulate, merge and batch send requests in a time frame interval.
(batch-send f delay)
Setup a debounce to batch network requests. The callback function f will be called with a list of requests to be made after merging as max as possible.
Setup a debounce to batch network requests. The callback function f will be called with a list of requests to be made after merging as max as possible.
(gql-error-reader {:com.wsscode.pathom.fulcro.network/keys [graphql-errors]
:com.wsscode.pathom.core/keys [path js-key-transform]
:as env})
(gql-network-query {:com.wsscode.pathom.fulcro.network/keys
[url q gql-process-request gql-process-query
gql-process-env]
:or {gql-process-query identity gql-process-env identity}})
(group-mergeable-requests requests)
Given a list of requests [query ok-callback error-callback], reduces the number of requests to the minimum by merging the requests. Not all requests are mergeable, so this still might output multiple requests.
Given a list of requests [query ok-callback error-callback], reduces the number of requests to the minimum by merging the requests. Not all requests are mergeable, so this still might output multiple requests.
(http {:com.wsscode.pathom.fulcro.network/keys [url body method headers]
:or {method "GET"}})
(join-remote {:com.wsscode.pathom.fulcro.network/keys [app remote join-root]
:keys [query]})
(make-resolver {:com.wsscode.pathom.connect.graphql/keys [prefix]
:com.wsscode.pathom.fulcro.network/keys [url]})
(query {:com.wsscode.pathom.fulcro.network/keys [url q gql-process-request]
:as input})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close