@hulanbv/nest-utilities-client-state
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -37,3 +37,3 @@ "use strict"; | ||
// Extract request options | ||
const { proxyMethod, cache = false } = stateOptions; | ||
const { appendQuery, proxyMethod, cache = false } = stateOptions; | ||
// Create a shadow variable for `cache` so its value won't change. | ||
@@ -59,3 +59,3 @@ const _cache = react_1.useRef(cache); | ||
*/ | ||
const createRequestState = react_1.useCallback(() => new RequestState_1.RequestState(service, method, query, httpOptions, proxyMethod, _cache.current), | ||
const createRequestState = react_1.useCallback(() => new RequestState_1.RequestState(service, method, query, httpOptions, proxyMethod, _cache.current, appendQuery), | ||
// We do not need httpOptions as a dependency, because we know `httpOptionsHash` will change every time http options change. | ||
@@ -62,0 +62,0 @@ // eslint-disable-next-line react-hooks/exhaustive-deps |
{ | ||
"name": "@hulanbv/nest-utilities-client-state", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "React hooks for state management when using nest-utilities-client and a nest-utilities based API.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
76394