2.1.2 • Published 4 years ago

@rematch/persist v2.1.2

Weekly downloads
6,749
License
MIT
Repository
github
Last release
4 years ago

Rematch Persist

Redux-Persist v5 plugin for Rematch.

Provides simple redux state persistence using local storage options.

persist

Install

npm install @rematch/persist

For @rematch/core@0.x use @rematch/persist@0.2.1

Setup

import createRematchPersist from '@rematch/persist'

const persistPlugin = createRematchPersist({
  whiteList: ['modelName1'],
  throttle: 5000,
  version: 1,
})

init({
  plugins: [persistPlugin]
})

Persist Gate

With React, display a loading indicator while waiting for data to async load from storage.

import { getPersistor } from '@rematch/persist'
import { PersistGate } from 'redux-persist/es/integration/react'

const persistor = getPersistor()

const Root = () => {
  <PersistGate persistor={persistor}>
    <App />
  </PersistGate>
}

Config Options

See redux-persist config docs

2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

2.0.0-next.11

4 years ago

2.0.0-next.10

5 years ago

2.0.0-next.9

5 years ago

2.0.0-next.8

5 years ago

2.0.0-next.7

5 years ago

2.0.0-next.6

5 years ago

2.0.0-next.5

5 years ago

2.0.0-next.4

5 years ago

2.0.0-next.3

5 years ago

2.0.0-next.2

5 years ago

2.0.0-next.1

5 years ago

1.1.6

6 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.0-alpha.0

7 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago