UNPKG

@dillonkearns/elm-graphql

Version:

<img src="https://cdn.jsdelivr.net/gh/martimatix/logo-graphqelm/logo.svg" alt="dillonearns/elm-graphql logo" width="40%" align="right">

3 lines (2 loc) 660 B
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var _newArrowCheck=_interopDefault(require("babel-runtime/helpers/newArrowCheck")),utilsArray=require("@jumpn/utils-array"),utilsComposite=require("@jumpn/utils-composite"),_this$1=void 0,findIndex=function(e,r,i){return _newArrowCheck(this,_this$1),e.findIndex(utilsComposite.hasIn([r],i))}.bind(void 0),_this=void 0,refresh=function(e){return _newArrowCheck(this,_this),function(r){return _newArrowCheck(this,_this),utilsArray.replace(findIndex(r,"request",e.request),[e],r)}.bind(this)}.bind(void 0);module.exports=refresh; //# sourceMappingURL=refresh.js.map