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.
@modular-toolkit/selectors
Advanced tools
Utility functions for connecting selectors for a state object to a global Redux state
Utility functions to use selectors for decoupled React components with a global Redux state.
npm install --save @modular-toolkit/selectors
Note: by default, the npm package exposes ES5-compatible code (transpiled through Babel).
If you want to use the untranspiled code (highly recommended), us the esnext version, which is included in the same npm package (more info here).
This is a drop in replacement for reselect.createSelector and is used to create composed, cachable selectors.
This drop-in replacement is required, because the original function provided by Reselect does not play nicely with the registerSelectorsForUseWithGlobalState module.
This utility function allows you to register selectors that use the context of a self-contained module to a global Redux state.
For an example, take a look at this code from the demo app:
import { registerSelectorsForUseWithGlobalState } from '@modular-toolkit/selectors';
import * as hackerNewsSelectors from '@modular-toolkit/demo-module/selectors';
export default () => registerSelectorsForUseWithGlobalState(
'modules.hackerNews',
hackerNewsSelectors
);
A version of redux-saga.select, allows you to use the global selector mechanism described above with Sagas.
Copyright © 2018 mobile.de GmbH
FAQs
Utility functions for connecting selectors for a state object to a global Redux state
The npm package @modular-toolkit/selectors receives a total of 11 weekly downloads. As such, @modular-toolkit/selectors popularity was classified as not popular.
We found that @modular-toolkit/selectors demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.