juliangruber / juliangruber/proxy-clone

Object nesting occurs with repeated agents

Open
#11 5 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
128
Forks
14
PR merge metrics
No merged PRs in 30d

Description

``` js
const obj = {
p: {
}
};

const t = proxyClone(obj);

t.p // will go proxyClone
t.p // will go proxyClone again
```

I think you should add this code at
``` js
if (isObject(value) && !override[name] /* Prevent multiple proxyClone */ ) {
value = proxyClone(value);
override[name] = value;
}
```

> Can I submit PR?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.