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
For the function updateCache2 , arguments will be narrow to Immutable<Assignment[]>. If we don't want this, we can specify the generic state. However, type of function updatedCache3 is (state: Assignment[] | undefined) => Assignment[] .Maybe this '?' can be removed?
🐛 Bug Report
When using currying,
produce
doesn't return the original typeLink to repro
https://codesandbox.io/s/immer-sandbox-forked-342jd?file=/src/index.ts
To Reproduce
Use
produce
function without data and check the return type.Observed behavior
Curried
produce
returns:Expected behavior
Curried
produce
returns the original type.I need it, because it fails when using with Ramda's
pipe
function.Environment
We only accept bug reports against the latest Immer version.
setUseProxies(true)
setUseProxies(false)
(ES5 only)The text was updated successfully, but these errors were encountered: