1.2.0 • Published 8 years ago

leilo-redux v1.2.0

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

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:
```javascript
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

1.2.0

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago