Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

NotificationsYou must be signed in to change notification settings

devx-agency-deprecated/redux-persist-check-version-transform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redux persist with version information.

Install

yarn add https://github.com/devx-agency/redux-persist-check-version-transform

Usage

constpersistWhitelist=['userData','product']constreduxStore={userData:{redux:require('../Redux/UserDataRedux'),blacklist:['username'],encrypt:true,version:1},product:{redux:require('../Redux/ProductRedux'),whitelist:['productName'],version:1}}constpass='pass'constpersistConfig={// 'redux-persist' configkey:'devx',storage:localForage,transforms:[immutableTransform(),persistCheckVersionTransform(reduxStore,persistWhitelist,pass)],whitelist:persistWhitelist}

Configuration

VariableTypeDescription
persistWhitelistArraywhich redux will be stored
reduxStore{[key: string]: Options}configuration of persist tranform
passstringpassword for encrypted data

Options

VariableTypeDescription
reduximported redux
blacklistArrayvariables will not be persisted
whitelistArrayonly this variables will be persisted
encryptbooleandefault false if data should be persisted
versionnumberdata version

When version is incresed, old data will be deleted.

State reconciler

import { stateReconcilerImmutable } from 'persist-check-version-transform'

Thanks to V&T

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp