Skip to content

Commit

Permalink
fix: do not wrap noSerialize() values (QwikDev#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley authored Apr 25, 2022
1 parent c7d00ce commit 4ea8f09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/object/q-object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export function unwrapProxy<T>(proxy: T): T {
}

export function wrap<T>(value: T, proxyMap: ObjToProxyMap): T {
if (value && typeof value === 'object') {
if (value && typeof value === 'object' && !(NOSERIALIZE in value)) {
if (isQrl(value)) {
return value;
}
Expand Down

0 comments on commit 4ea8f09

Please sign in to comment.