fix(sessions): avoid parsing object cache writes

This commit is contained in:
Peter Steinberger
2026-05-26 21:15:56 -04:00
parent 978cb6ac20
commit f6599ede0d

View File

@@ -385,9 +385,7 @@ export function writeSessionStoreCache(params: {
takeOwnership?: boolean;
}): void {
const store =
params.takeOwnership === true
? params.store
: cloneSessionStoreRecord(params.store, params.serialized);
params.takeOwnership === true ? params.store : cloneSessionStoreRecord(params.store);
if (params.takeOwnership === true) {
internSessionStoreLargeStrings(store);
}