Skip to content

Tag: redux-saga

Jest redux saga API call with response image

I’m trying to test a fetch that responds with a readable stream for an image, but I’m stuck and not sure how to approach this specific case. Is there a simple, easy way to mock the call’s response? Any help would be appreciated 😀 The generator function looks like the following: Answer You ca…

How to wait for another action in redux-saga

I have a few sagas that may finish and then put another action into the store. Some sagas should only execute after others are executed: they must block, or wait until another one is finished. Summarized as follows: I’m trying to maintain as little coupling between sagas, so bonus points for showing me …

Polling with redux-saga

I tried to solve polling with the information on this page: https://bigbite.net/polling-with-redux/ The problem I have now is that I see in network that my service gets called too many times. It is called all the time. Should not my delay prevent it to call my fetchStuff in the next round inside while? Should…