You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 23, 2021. It is now read-only.
Here good works as expected, fixed shows error message that I would expect to see in this case Object is possibly 'undefined', but bad doesn't show any errors while crashing at run time with Uncaught TypeError: Cannot read property 'map' of undefined
Maybe there need to be a function that is updateIfKeyExist that would have (value: V) => V type, but right now type is misleading and causes run time issues.
From @JLarky on Sat, 23 Dec 2017 03:01:10 GMT
What happened
here
updater
has wrong type, should beupdater: (value?: V) => V)
if key doesn't existHow to reproduce
Here
good
works as expected,fixed
shows error message that I would expect to see in this caseObject is possibly 'undefined'
, butbad
doesn't show any errors while crashing at run time withUncaught TypeError: Cannot read property 'map' of undefined
Maybe there need to be a function that is
updateIfKeyExist
that would have(value: V) => V
type, but right now type is misleading and causes run time issues.Copied from original issue: immutable-js#1466
The text was updated successfully, but these errors were encountered: