Skip to content

Commit e1b9432

Browse files
Update packages/snaps-utils/src/json.ts
Co-authored-by: Maarten Zuidhoorn <[email protected]>
1 parent bde2545 commit e1b9432

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/snaps-utils/src/json.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ export function parseJson<Type extends Json = Json>(json: string) {
3131
*/
3232
export function getJsonSizeUnsafe(value: Json): number {
3333
const json = JSON.stringify(value);
34+
// We intentionally don't use `TextEncoder` because of bad performance on React Native.
3435
return json.length;
3536
}

0 commit comments

Comments
 (0)