Gate.open
and Gate.close
EventCallable
to allow users to call it in testsPublished by zerobias 9 months ago
allSettled
calls with derived units. This case was labeled as a type error, but was forgotten in runtime.Published by AlexandrHoroshih 10 months ago
Published by AlexandrHoroshih 10 months ago
useProvidedScope
low level API for library developers. https://github.com/effector/effector/pull/1033
Published by zerobias 11 months ago
useStore
appeared in useList
(PR #1022)Published by zerobias 11 months ago
EventCallable
, StoreWritable
and UnitTargetable
types to allow users to express and understand what could be updated or called directly and what could not. Now createStore
returns StoreWritable
which can be passed to sample target and combine
returns Store
which will show type and runtime error (PR #966)addLoc: true
in babel-plugin. Usually the one wanted to enable this in development only so addLoc
plugin option is disabled by default (PR #1015)batch
option to createWatch
(PR #850)@withease/factories
to babel-plugin defaults (PR #995)patronum
modules to babel-plugin defaults (PR #996)greedy
to batch
in sample
. greedy: true
becomes batch: false
which is a better mental model for what this option do (PR #972)merge
and restore
(PR #969)domain
to be used in attach
without parent effect (PR #895).reinit
, now it exists in StoreWritable
and not exists in Store
(PR #966)combine
calls (PR #916)attach
(PR #1011)skipVoid: true
option in combine
and map
to enable old behavior. Getting rid of that edge case will allow to introduce lazy computations (issue #920)forward
and guard
in favor of sample
(PR #913)reactSsr
option in babel-plugin (PR #910)onlyChanges
option in serialize
(PR #907){[fx.sid]: Function}
in fork handlers
(PR #973).watch
with second argument in favor of sample
(PR #906).getType()
- relic from ancient times which exists for redux compatibility (PR #899)effector/babel-plugin-react
(PR #948)fork(domain)
and hydrate(domain)
- this api existed for traking units in scopes when Fork API was introduced, but starting from 22 version this is done automatically and domain is no longer required for that (PR #950)fn
in $store.map(fn)
returns undefined
in the initialization (issue #828)effector/fork
module (PR #842)createStoreObject
alias for combine
(PR #908).thru
method (PR #843)$store.map
(PR #846)restore($store)
support. This was an obscure feature when store is passed to method and returned without changes as is (PR #1018)Published by zerobias 11 months ago
effector-react/scope
in favor of isomorphic hooks (PR #979)useStore
, useEvent
, connect
and createStoreConsumer
in favor of universal useUnit
(PR #951)createComponent
in favor of @effector/reflect
effector-react/ssr
module (PR #844)Published by zerobias 11 months ago
Published by zerobias 11 months ago
effector-solid/scope
in favor of isomorphic hooks (PR #979)Published by zerobias 11 months ago
Published by zerobias about 1 year ago
combine
function called twice on first allSettled
call (PR #984)Published by AlexandrHoroshih about 1 year ago
Fix for createWatch implementation to improve @effector/next updates flow
Published by zerobias over 1 year ago
useUnit
updates (PR #904)Published by igorkamyshev over 1 year ago
22.8.2
: now combine
in tuple-form handles complex edge-cases with mapped stores correctly. (PR #902)Published by zerobias over 1 year ago
useUnit
during event change (issue #900, PR #901)Published by AlexandrHoroshih over 1 year ago
22.8.4
: now fix works for fork({ handlers })
calls too. [PR #898] (https://github.com/effector/effector/pull/898)Published by AlexandrHoroshih over 1 year ago
Fixed an edge case for fork
calls without sid (function from release 22.8.0
). Some libraries provide built-in sid's in the code, which led to the duplicated sid found
exception when calling fork
when trying to use two instances of the same factory in a test and running it without effector/babel-plugin
.
The exception on fork
calls is no longer thrown, and all sid-related checks and assertions have been moved to serialize
calls, since sid's are actually only required for serialize
to work. PR #897
Published by AlexandrHoroshih over 1 year ago
Published by AlexandrHoroshih over 1 year ago
Published by AlexandrHoroshih over 1 year ago