redux-fs-logger

0.0.4 • Public • Published

Filesystem logger for Redux

Redux middleware for react-native that logs every action to the filesystem. In case of an emergency where data has not been synchronized with the server and the device is in a state that is incapable of making network requests, the data can be retrieved from the log file that has redux actions and their payload.

Installation

yarn add redux-fs-logger 

redux-fs-logger currently depends on react-native-fs >= 2.3.2

yarn add react-native-fs@2.3.2 && react-native link 

Usage

import { applyMiddleware, createStore } from 'redux';

// Logger with default options
import { fsLogger } from 'redux-fs-logger'

const store = createStore(
  reducer,
  applyMiddleware(fsLogger)
)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    0
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i redux-fs-logger

Weekly Downloads

0

Version

0.0.4

License

MIT

Last publish

Collaborators

  • armadilio3