·
2 commits
to refs/heads/master
since this release
TypeScript fixes
- Allow to bind
EventCallable<void>
to an optional callback #92 (@kireevmp) - Fix Mantine UI (which has kinda weird polymorphic component types) compatibilty #93 (@AlexandrHoroshih)
- Support React 19 (React 18 is still supported also) #96 (@AlexandrHoroshih)
Breaking changes
- Remove
.prepend
usage and recommendations from docs and type-tests #94 (@AlexandrHoroshih)
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