diff --git a/package-lock.json b/package-lock.json index a67b91f2fd154..7f0c353a51f3e 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.46", + "react-native-onyx": "3.0.48", "react-native-pager-view": "8.0.0", "react-native-pdf": "7.0.2", "react-native-permissions": "^5.4.0", @@ -34567,9 +34567,9 @@ } }, "node_modules/react-native-onyx": { - "version": "3.0.46", - "resolved": "https://registry.npmjs.org/react-native-onyx/-/react-native-onyx-3.0.46.tgz", - "integrity": "sha512-/dB5PrK+AZ4QiaFdIdb2iC1q5tu7L3n6pxh+QZJiMhDORlQT6jK832b/6sqwgQ3qIZCrrsnqmyLVKCqEbYTrlQ==", + "version": "3.0.48", + "resolved": "https://registry.npmjs.org/react-native-onyx/-/react-native-onyx-3.0.48.tgz", + "integrity": "sha512-bEtJlNiF2H8w4qlm3sjEHeu4HCcXaIiQi96bBGTc+aSfqIXm116TZTtlS6VmF1/ip0hG8KbYuMfW8CiO3uTD3Q==", "license": "MIT", "dependencies": { "ascii-table": "0.0.9", diff --git a/package.json b/package.json index 4ec8bb100af6e..46c0de0eaaa38 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.46", + "react-native-onyx": "3.0.48", "react-native-pager-view": "8.0.0", "react-native-pdf": "7.0.2", "react-native-permissions": "^5.4.0", diff --git a/src/hooks/useOnyx.ts b/src/hooks/useOnyx.ts index 261accfe885fd..d3aafc04753bd 100644 --- a/src/hooks/useOnyx.ts +++ b/src/hooks/useOnyx.ts @@ -74,7 +74,7 @@ const useOnyx: OriginalUseOnyx = | undefined) => selectorProp(getKeyData(data as SearchResults, key)); }, [selectorProp, shouldUseSnapshot, key]); - const onyxOptions: UseOnyxOptions> = {...optionsWithoutSelector, selector, allowDynamicKey: true}; + const onyxOptions: UseOnyxOptions> = {...optionsWithoutSelector, selector}; const snapshotKey = shouldUseSnapshot ? (`${ONYXKEYS.COLLECTION.SNAPSHOT}${currentSearchHash}` as OnyxKey) : key; const originalResult = originalUseOnyx(snapshotKey, onyxOptions, dependencies);