-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Crash on IE11 #4024
Comments
Even better: new Map().set('foo', 'bar') returns |
The following implementation works: CacheKeyNode.prototype.getOrCreate = function (value) {
var map = this.children || (this.children = new Map);
var output = map.get(value)
if (output) {
return output
}
output = new CacheKeyNode()
map.set(value, output)
return output
}; |
Same report here: vercel/next.js#5426. |
According to @barnslig, it's a regression, it used to work in v1.2.10. |
benjamn
added a commit
to ooflorent/apollo-client
that referenced
this issue
Oct 24, 2018
Implementing my own suggestion: apollographql#4012 (review) This change would be sufficient to fix apollographql#4024, though apollographql#4012 helps as well.
This should be fixed with |
Thank you! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Intended outcome:
No error.
Actual outcome:
Unable to get property 'get' of undefined or null reference
How to reproduce the issue:
Go to IE 11 and run:
from:
apollo-client/packages/apollo-cache-inmemory/src/optimism.ts
Lines 42 to 45 in 51aee1f
Versions
The text was updated successfully, but these errors were encountered: