Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
redux-toolbelt-saga
Advanced tools
A set of helper functions that extends 'redux-toolbelt' for usage with redux-saga
.
The tools are available in the redux-toolbelt
npm package.
npm install --save redux-toolbelt redux-toolbelt-saga redux-saga
# or
yarn add redux-toolbelt redux-toolbelt-saga redux-saga
import the functions you like to use using one of the two methods:
import {makeAsyncActionCreator} from 'redux-toolbelt'
import {makeAsyncSaga} from 'redux-toolbelt-saga'
// or
import makeAsyncActionCreator from 'redux-toolbelt/lib/makeAsyncActionCreator'
import makeAsyncSaga from 'redux-toolbelt-saga/lib/makeAsyncSaga'
makeAsyncSaga()
Creates a saga that handles actions created using makeAsyncActionCreator
.
The first argument specifies saga when to dispatch the function in the second argument.
Other arguments are passed to the function when it is run.
const fetchTodos = makeAsyncActionCreator('FETCH_TODOS')
// Returns promise
const fetchTodosFromServer = () => {/*...*/}
const saga = makeAsyncSaga(fetchTodos, fetchTodosFromServer)
FAQs
Saga helpers for redux-toolbelt
The npm package redux-toolbelt-saga receives a total of 10 weekly downloads. As such, redux-toolbelt-saga popularity was classified as not popular.
We found that redux-toolbelt-saga demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.