effector-queue
v1.0.2
Published
Library for sequential effect execution
Downloads
4
Readme
This library allows you to make the effects run one after the other, rather than simultaneously. The next one will be executed only after the previous one is finished.
Installation
npm install --save effector-queue@latest
Usage
To create a queue, use the createQueue
method. It returns a constructor that returns the effects. Effects created in this way will not execute at the same time.
const [createQueueEffect] = createQueue()
const firstFx = createQueueEffect(firstRequest)
const secondFx = createQueueEffect(secondRequest)
const thirdFx = createQueueEffect(thirdRequest)