Library for sequential effect execution.
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.
npm install --save effector-queue@latest
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)