Skip to content

Commit

Permalink
refactor: Remove unnecessary isProxy check for deeply-nested objects
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Frank committed Aug 10, 2022
1 parent 022cab6 commit ca3eddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HyperDurable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class HyperDurable<T extends object, Env = unknown> implements DurableObj

// Recursively proxy any object-like properties, except reserved keys
// This enables us to keep track of deeply-nested changes to props
if (typeof prop === 'object' && !prop.isProxy && !reservedKeys.has(key)) {
if (typeof prop === 'object' && !reservedKeys.has(key)) {
prop = new Proxy(prop, handler);
// If we're getting a proxied top-level property of the Durable Object,
// save the key to persist the deeply-nested property
Expand Down

0 comments on commit ca3eddd

Please sign in to comment.