diff --git a/examples/react/package.json b/examples/react/package.json index 9f5a7d763..1a781f418 100644 --- a/examples/react/package.json +++ b/examples/react/package.json @@ -40,5 +40,9 @@ "eslint-plugin-react": "^7.18.0", "eslint-plugin-react-hooks": "^1.7.0", "parcel-bundler": "^1.12.4" + }, + "alias": { + "react": "react", + "local_modules": "../../node_modules" } } diff --git a/packages/offix-cache/src/createMutationOptions.ts b/packages/offix-cache/src/createMutationOptions.ts index 68f316914..835a87c34 100644 --- a/packages/offix-cache/src/createMutationOptions.ts +++ b/packages/offix-cache/src/createMutationOptions.ts @@ -3,7 +3,6 @@ import { CacheOperation } from "./api/CacheOperation"; import { createOptimisticResponse } from "./createOptimisticResponse"; import { CacheUpdatesQuery } from "./api/CacheUpdates"; import { getOperationFieldName, deconstructQuery } from "./utils/helperFunctions"; -import { isArray } from "util"; /** * Interface to overlay helper internals on top of mutation options. @@ -104,7 +103,7 @@ export const createMutationOptions = { - if (isArray(updateQuery)) { + if (Array.isArray(updateQuery)) { for (const query of updateQuery) { const updateFunction = getUpdateFunction({ mutationName,