diff --git a/package-lock.json b/package-lock.json index afd3a36fbd518..be2d8f69eb86c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -117,7 +117,7 @@ "react-native-localize": "^3.5.4", "react-native-nitro-modules": "0.29.4", "react-native-nitro-sqlite": "9.2.0", - "react-native-onyx": "3.0.53", + "react-native-onyx": "3.0.54", "react-native-pager-view": "8.0.0", "react-native-pdf": "7.0.2", "react-native-permissions": "^5.4.0", @@ -34861,9 +34861,9 @@ } }, "node_modules/react-native-onyx": { - "version": "3.0.53", - "resolved": "https://registry.npmjs.org/react-native-onyx/-/react-native-onyx-3.0.53.tgz", - "integrity": "sha512-Q4GaWJ3a4vF+D2ZzWG16wDTSPL5VKFy+BLbHyJjGA3pabf9l5ErdLkAXOXqvsb0oBQsoJ9TOGtx901hRGq8KQg==", + "version": "3.0.54", + "resolved": "https://registry.npmjs.org/react-native-onyx/-/react-native-onyx-3.0.54.tgz", + "integrity": "sha512-202+t6reV9iQZnr5UOGHaJLCyO5X7Or0V2GHfvb5z10ZM1wnnZ0IKPkfUi+7WPZy4pFhEvDKymuaCIOu6++/rA==", "license": "MIT", "dependencies": { "ascii-table": "0.0.9", diff --git a/package.json b/package.json index 2d142549d4de9..c74980ca10320 100644 --- a/package.json +++ b/package.json @@ -181,7 +181,7 @@ "react-native-localize": "^3.5.4", "react-native-nitro-modules": "0.29.4", "react-native-nitro-sqlite": "9.2.0", - "react-native-onyx": "3.0.53", + "react-native-onyx": "3.0.54", "react-native-pager-view": "8.0.0", "react-native-pdf": "7.0.2", "react-native-permissions": "^5.4.0", diff --git a/src/libs/actions/OnyxDerived/index.ts b/src/libs/actions/OnyxDerived/index.ts index 31791077f1abb..ac245f116b1bf 100644 --- a/src/libs/actions/OnyxDerived/index.ts +++ b/src/libs/actions/OnyxDerived/index.ts @@ -6,6 +6,7 @@ * The primary purpose is to optimize performance by reducing redundant computations. More info can be found in the README. */ import Onyx from 'react-native-onyx'; +import OnyxKeys from 'react-native-onyx/dist/OnyxKeys'; import OnyxUtils from 'react-native-onyx/dist/OnyxUtils'; import Log from '@libs/Log'; import {endSpan, getSpan, startSpan} from '@libs/telemetry/activeSpans'; @@ -101,7 +102,7 @@ function init() { const dependencyIndex = i; const dependencyOnyxKey = dependencies[dependencyIndex]; - if (OnyxUtils.isCollectionKey(dependencyOnyxKey)) { + if (OnyxKeys.isCollectionKey(dependencyOnyxKey)) { Onyx.connectWithoutView({ key: dependencyOnyxKey, waitForCollectionCallback: true,