@girders-elements/core
Version:
Girders Elements is an architectural framework that assists with building data-driven apps with React or React Native.
31 lines (7 loc) • 1.03 kB
JavaScript
;Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};exports.
read=read;exports.
readRefresh=readRefresh;var types=exports.types={read:'@@girders-elements/actions.read',readRefresh:'@@girders-elements/actions.read.refresh',setRefreshing:'@@girders-elements/actions.read.setRefreshing',setRefreshMetadata:'@@girders-elements/actions.read.setRefreshMetadata',setLoading:'@@girders-elements/actions.read.setLoading',apply:'@@girders-elements/actions.read.apply',fail:'@@girders-elements/actions.read.fail'};function read(uri,opts){var defaults={revalidate:false};return _extends({},defaults,opts,{uri:uri,type:types.read});}function readRefresh(){var uri=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined;
return{
type:types.readRefresh,
uri:uri};
}