We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bde2545 commit e1b9432Copy full SHA for e1b9432
packages/snaps-utils/src/json.ts
@@ -31,5 +31,6 @@ export function parseJson<Type extends Json = Json>(json: string) {
31
*/
32
export function getJsonSizeUnsafe(value: Json): number {
33
const json = JSON.stringify(value);
34
+ // We intentionally don't use `TextEncoder` because of bad performance on React Native.
35
return json.length;
36
}
0 commit comments