Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
redux-persist-transform-filter-immutable
Advanced tools
Filter transformator for redux-persist supporting immutable.js
Filter transformator for redux-persist supporting immutable.js
npm install redux-persist-transform-filter-immutable
import createFilter from 'redux-persist-transform-filter-immutable';
// you want to store only a subset of your state of reducer one
const saveSubsetFilter = createFilter(
'myReducerOne',
['keyYouWantToSave1', 'keyYouWantToSave2']
);
// you want to load only a subset of your state of reducer two
const loadSubsetFilter = createFilter(
'myReducerTwo',
null,
['keyYouWantToLoad1', 'keyYouWantToLoad2']
);
// saving a subset and loading a different subset is possible
// but doesn't make much sense because you'd load an empty state
const saveAndloadSubsetFilter = createFilter(
'myReducerThree',
['one', 'two']
['three', 'four']
);
// deeply nested values can be used via arrays as path
const nestedSubsetFilter = createFilter(
'myReducerThree',
[['my', 'path'], ['my', 'other', 'path']],
[['my', 'path'], ['my', 'other', 'path']]
);
persistStore(store, {
transforms: [
saveSubsetFilter,
loadSubsetFilter,
saveAndloadSubsetFilter,
]
});
Thanks to Eduard Baun for redux-persist-transform-filter - on which this implementation is based.
FAQs
Filter transformator for redux-persist supporting immutable.js
We found that redux-persist-transform-filter-immutable demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.