React native network Get request mode parameter cannot be undefined (default to NULL) or null
Error wording:
export function addToCartAction(isRefreshing, loading, spId, number, spfId = null, pgId = null) {
console.warn(‘==>‘,spId+":"+number); return (isRefreshing || loading) ? {types: [FETCH_ADD_TO_CART.code, SUCCESS_ADD_TO_CART, FAILURE_ADD_TO_CART],
callAPI: () => request(FETCH_ADD_TO_CART.url+‘?spId=‘+spId+‘&number=‘+number+‘&spfId=‘+spfId+‘&pgId=‘+pgId),
payload: {isRefreshing, loading}
} : {type: CLEAR_ADD_TO_CART, isRefreshing, loading};
}
Correct wording:
export function addToCartAction(isRefreshing, loading, spId, number) {
console.warn(‘==>‘,spId+":"+number); return (isRefreshing || loading) ? {types: [FETCH_ADD_TO_CART.code, SUCCESS_ADD_TO_CART, FAILURE_ADD_TO_CART],
callAPI: () => request(FETCH_ADD_TO_CART.url+‘?spId=‘+spId+‘&number=‘+number),
payload: {isRefreshing, loading}
} : {type: CLEAR_ADD_TO_CART, isRefreshing, loading};
}
React native network Get request mode parameter cannot be undefined or null