Comments (1)
After some research into the problem I found out a few details about how redux-saga works
Here's what @Vijah told me on discord:
takeLatest
,takeLeading
,takeEvery
are not intended to be used insideall
/race
.
The interesting part about forks is that they are non-blocking, BUT the parent task will never finish as a result of waiting after the fork.
As a result, my guess is that
takeLatest
returns a fork (a task) which does not block the all, but will cause the parent generator (takeLatestWrapper
) to never finish as a result of the task running indefinitely.
Also in discord @neurosnap tolds me that there are situations when it makes sense to use all()
and takeLatest
together:
There are cases where you want to use
all()
withtake*
helpers: for mounting a root task that spawns subtasks and never completes: https://github.com/neurosnap/redux-saga-creator/blob/master/index.ts
from typed-redux-saga.
Related Issues (20)
- Typing for `all` forces homogenous values
- esbuild/esbuild-loader HOT 1
- Add support for enhancing Saga with middleware (or support for Thunk)
- Port from Travis to github actions
- Yielded value from 'call' have type 'unknown' HOT 1
- Does Take verify the passed type string argument against the generic action argument?
- Integration with redux-saga-test-plan HOT 2
- Howto wrap takeLatest/takeEvery with solution
- Dependency Dashboard
- How to use eventChannel
- takeMaybe on a Channel should include END in return type
- Question: How to properly test typed-redux-saga
- Argument of type 'string' is not assignable to parameter of type 'TakeableChannel<unknown>'. HOT 1
- Regression in latest release? (when upgrading from 1.4 to 1.5) HOT 4
- Issue when using with redux-saga-test-plan HOT 1
- Question: Types for generic wrapper saga function
- Fork effects return tasks.
- Incorrect vite-plugin-babel-macros and @vitejs/plugin-react order leads to yield* conversion failure
- `TypeError: yield* (intermediate value) is not iterable` Error while running tests with Jest and redux-saga-test-plan HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typed-redux-saga.