Igor Kamyşev

Results 90 issues of Igor Kamyşev

Some operations in our application have lower priority than others, I purpose to add an operator to postpone event propagation until browser is idle. ```ts const $fitler = restore(fitlerChanged, null)...

RFC

Now `.navigate` and `.open` events push new state, in some cases it would be necessary to replace current state to prevent user from going back.

enhancement

`$store.on` is less extendable than `sample`, and it could be replaced with `sample`. Let's add a rule to check this. In my mind, we should not add it to `recommended`...

enhancement
good first issue
preset:strict

Personally, I hate `restore` because of the following pattern 👇 ```ts const $currency = restore(currencyInited, null).on(settingsChanges, (_, { ccurency}) => currency); ``` Furthermore, I doubt that one line of code...

enhancement
good first issue
preset:strict

New `useUnit` has batching under the hood, so it is better to use single `useUnit` instead of `useUnit` for every store/event.

enhancement
good first issue

```ts sample({ source: { a: $a, b: $b } }) sample({ source: [$a, $b] }) ``` Object form is stricter, than tuple form because: + it is sustainable against order...

enhancement
good first issue

Forbid `$store.map` calls in react-render functions.

enhancement
preset:react

Additional config preset with #5 enabled by default.

enhancement
good first issue
preset:patronum

[patronum/condition](https://github.com/effector/patronum#condition) is more clear way to write simple `split` with two cases. This rule will replace split-call with `condition-call`.

enhancement
preset:patronum

`useStoreMap` can use `keys`-parameter for memorize result. It passes this array to `React.useMemo` to skip unnecessary re-renders. We can write a rule to detect possible errors in `keys`. This rule...

enhancement
preset:react