Dmitry Petrov

Results 8 comments of Dmitry Petrov

I love this concept! I thought immer would fit well here :) `produceMany` is similar to immer naming and looks nice But I agree with PalmZE that we can choose...

@raveclassic Might as well try making a variant with a reducer like approach? ```ts const dispatch = newAtomReducer(state, (draft, action: Actions) => { if (action.type === "toggle") { const todo...

@19majkel94 Any plans for a future release?

Same issue. After add babel plugin, application throw error: ``` effector.mjs:1 Uncaught Error: combine expects a store in a field clock at r (effector.mjs:1) at effector.mjs:1 at e (effector.mjs:1) at...

@zry656565 More clear example, without dirty `tap` ```ts const mockRequest = (function() { let counter = 0; return function() { counter++; return new Promise((resolve, reject) => { setTimeout(() => {...

@raveclassic what do u think?

Yep, or simpler: `usePureCallback(onChange, (onChange, id) => onChange(id))`. To me that if this isn't part of the logic, you shouldn't force the code-style things.