Skip to content

v10.0.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 22 Mar 09:45
· 2 commits to refs/heads/master since this release
9497155

TypeScript fixes

Breaking changes

Mantine UI support resulted in breaking Effector's event.prepend type inference support, so for case like that

const ReflectedInput = reflect({
 view: Input,
 bind: {
  onChange: changed.prepend(event => event.target.value),
 }
})

the event type will not be inferred and will fallback to unknown.

To fix that just use plain callback instead:

const ReflectedInput = reflect({
 view: Input,
 bind: {
  onChange: (event) => changed(event.target.value)
 }
})

☝️ In this case event type will be inferred correctly