This package has been deprecated

Author message:

this

leilo-redux

1.2.0 • Public • Published

Rough docs

Package has 2 parts so far:

  • middleware - just add like a normal middleware
  • reducers - explained in following section

Reducers

  • Use index for all reducers, will give following store structure:
store={
   serverState: {}, //the object stored on the server, as synced with client
   connectionStatus: {} connectiontion
}
  • server state will look exactly like server state
  • connection connection looks like:
connectionStatus={
    connection: DISCONNECTED/CONNECTED/CONNECTING,
    username: ...
}

Note: obj reducer is a 2nd order function, allows you to input which ids to accept state changes from Note: connectionStatus reducer: actual reducer is stored in connectionStatus.reducer, constants stored in connectionStatus.STATUS

Readme

Keywords

none

Package Sidebar

Install

npm i leilo-redux

Weekly Downloads

2

Version

1.2.0

License

ISC

Last publish

Collaborators

  • npm