UNPKG

rx-query

Version:
18 lines 526 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createQueryKey = void 0; /** * Creates a query key based on the key and the params */ function createQueryKey(key, params) { if (params !== undefined && params !== null) { return (key + '-' + (['string', 'number'].includes(typeof params) ? params : JSON.stringify(params))); } return key; } exports.createQueryKey = createQueryKey; //# sourceMappingURL=key.js.map