MCPcopy Index your code
hub / github.com/heroku/react-refetch / refetchDatum

Method refetchDatum

src/components/connect.js:281–289  ·  view source on GitHub ↗
(prop, mapping)

Source from the content-addressed store, hash-verified

279 }
280
281 refetchDatum(prop, mapping) {
282 const startedAt = new Date()
283
284 if (this.state.refreshTimeouts[prop]) {
285 window.clearTimeout(this.state.refreshTimeouts[prop])
286 }
287
288 return this.createPromise(prop, mapping, startedAt)
289 }
290
291 createPromise(prop, mapping, startedAt) {
292 const meta = mapping.meta

Calls 1

createPromiseMethod · 0.95

Tested by

no test coverage detected