-
-
Notifications
You must be signed in to change notification settings - Fork 848
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot perform 'get' on a proxy that has been revoked #53
Comments
Correct. Interested in creating a PR with a test for the bug? |
function finalize(base) {
// console.log(base, base[PROXY_STATE], isProxy(base))
if (isProxy(base)) {
// ...
}
return base
} In this case, State { arr: [ State { count: 3 } ] } If [ State { count: 3 } ] I think you should first determine the type of object, as before, right? function finalize(base) {
if (isPlainObject(base)) return finalizeObject(base)
if (Array.isArray(base)) return finalizeArray(base)
return base
} |
Bug confirmed, fix WIP |
Fixed in 0.6.1 |
I think I found a regression in 1.1.1, but it's working again in 1.1.3. |
I've reproduced this issue in 1.7.1 |
@kikill95 cool. Please open a new issue with reproduction. Responding to closed issues is generally pointless :). |
Node: 8.4.0
immer: 0.5.0
result.arr[0].count
seems to be troublesome, even referencing to this variable throws an error.Result of function
produce
should be a plain JS object, right? Because it seems that the result sometimes contains proxies inside.The text was updated successfully, but these errors were encountered: