CARVIEW |
Navigation Menu
-
Notifications
You must be signed in to change notification settings - Fork 10
Releases: effector/reflect
v10.0.1
a91fb94
Compare
- fix(types): relax variant behavior on incompatible props #97 (@AlexandrHoroshih)
variant
blocking on "incompatible props" use-case is bad for DX and it only protects against bad spreads, which are react anti-pattern anyway
In this patch-release behavior is changed to favor union of possible props as a resulting type for variant
Assets 2
v10.0.0
9497155
Compare
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
Assets 2
v9.2.0
Compare
🚀 Features
- feat(reflect/hooks): pass component props to
mounted
hook #89 (@evist0) - Fix final props type inference #87 (@AlexandrHoroshih)
Assets 2
v9.1.1
5da0fc7
Compare
🐛 Bug Fixes
- Fix type inference for function props and store value #84 (@AlexandrHoroshih)
Assets 2
v9.1.0
0341842
Compare
🚀 Features
- improvement: bind hooks' callbacks to a scope #82 (@iposokhin)
🐛 Bug Fixes
- Fix variant type inference #83 (@AlexandrHoroshih)
Assets 2
v9.0.0
Compare
Reflect 9.0 #80 (@AlexandrHoroshih)
⚠️ Breaking changes
/ssr
export is removed and/scope
is deprecated - do not use those for SSR anymore, use the main export.- New minimal peer deps verisons:
effector@23.1.0
andeffector-react@23.1.0
🚀 Features
fromTag
- Arbitary callbacks are fully supported in
bind
, even if you use the Fork API of Effector - All operators now have
useUnitConfig
- this object will be directly passed to the underlyinguseUnit
(hook fromeffector-react
calls). Useful in case you need toforceScope
for some reason.
Assets 2
v8.4.0
31c696a
Compare

🚀 Features
This release allows usage of Reflect with Effector 23, but is not yet introducing advanced types support, so Effector 22 is still allowed too
Full-featured support of Effector 23 will come a bit later.
- Allow effector 23 #78 (@AlexandrHoroshih)
Assets 2
v8.3.3
e4e317a
Compare
🐛 Bug Fixes
- [Fix]: Add types field #75 (@AlexandrHoroshih)
Assets 2
v8.3.2
1d6e2ff
Compare
Assets 2
v8.3.1
54eee83
Compare
🐛 Bug Fixes
- No weird effector-imports in ESM build #66 (@igorkamyshev)