@baqhub/sdk-react
Version:
The official React SDK for the BAQ federated app platform.
13 lines (12 loc) • 459 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.staticRecordQueryOptionsToRefreshSpec = staticRecordQueryOptionsToRefreshSpec;
function staticRecordQueryOptionsToRefreshSpec(options) {
if (!options.refreshMode || options.refreshMode === "none") {
return undefined;
}
return {
mode: options.refreshMode,
interval: (options.refreshIntervalSeconds || 30) * 1000, // Default: 30s.
};
}