Added withClearValue prop to select component

This commit is contained in:
ireic
2019-12-28 23:26:04 +01:00
parent 821547e1ad
commit bbda9b9d03
9 changed files with 26 additions and 13 deletions

View File

@@ -5,7 +5,9 @@ import api from 'shared/utils/api';
import useMergeState from 'shared/hooks/mergeState';
import useDeepCompareMemoize from 'shared/hooks/deepCompareMemoize';
const useQuery = (url, propsVariables = {}, { lazy = false, cachePolicy = 'cache-first' } = {}) => {
const useQuery = (url, propsVariables = {}, options = {}) => {
const { lazy = false, cachePolicy = 'cache-first' } = options;
const [state, mergeState] = useMergeState({
data: null,
error: null,