6.1.0-alpha.1 • Published 9 months ago

@podlove/player-state v6.1.0-alpha.1

Weekly downloads
90
License
MIT
Repository
-
Last release
9 months ago

Player State

Player Reducer and Selectors creating the state, created with redux-actions

Reducers

Each state slice provides a reducer function, that can be used to create the store:

import { combineReducers } from 'redux'

import { reducer as runtime } from '@podlove/player-state/runtime'
import { reducer as theme } from '@podlove/player-state/theme'

export default combineReducers({
  runtime,
  theme
})

Depending on the application use case only a specific set of reducers can be used and arbitrary combined.

Selectors

A selector is a function that provides access to a specific state property without the need to know the specific state structure:

import { selectors as runtime } from '@podlove/player-state/runtime'
import { compose } from 'ramda'

import root from './root'

export default {
  language: compose(
    runtime.language,
    root.runtime
  ),
  platform: compose(
    runtime.platform,
    root.runtime
  )
}

Depending on the application use case and the state structure only a specific set of selectors are needed.

6.1.0-alpha.1

9 months ago

6.1.0-alpha.0

9 months ago

5.12.1-alpha.1

2 years ago

5.12.1-alpha.0

2 years ago

6.0.1-alpha.6

2 years ago

6.0.1-alpha.7

2 years ago

6.0.1-alpha.3

2 years ago

6.0.1-alpha.4

2 years ago

6.0.1-alpha.5

2 years ago

5.12.0

3 years ago

5.11.1

3 years ago

5.11.0

3 years ago

5.8.0

3 years ago

5.10.0

3 years ago

5.9.0

3 years ago

5.7.4

4 years ago

5.7.3

4 years ago

5.7.1

4 years ago

5.7.0

4 years ago

5.6.4

4 years ago

5.6.3

4 years ago

5.6.2

4 years ago

5.6.1

4 years ago

5.6.0

4 years ago

5.5.0

4 years ago

5.4.1

4 years ago

5.4.0

4 years ago

5.3.2

5 years ago

5.3.1

5 years ago

5.3.0

5 years ago

5.2.3

5 years ago

5.2.2

5 years ago

5.2.1

5 years ago

5.2.0

5 years ago

5.1.12

5 years ago

5.1.11

5 years ago

5.1.10

5 years ago

5.1.9

5 years ago

5.1.8

5 years ago

5.1.7

5 years ago

5.1.6

5 years ago

5.1.5

5 years ago

5.1.4

5 years ago

5.1.3

5 years ago

5.1.2

5 years ago

5.1.1

5 years ago

5.1.0

5 years ago

5.0.1-beta.5

5 years ago

5.0.1-beta.4

5 years ago

5.0.1-beta.3

5 years ago

5.0.1-beta.2

5 years ago

5.0.1-beta.1

6 years ago

4.5.12

6 years ago

5.0.1-beta.0

6 years ago

4.5.10

6 years ago

4.5.9

6 years ago

4.5.8

6 years ago

4.5.7

6 years ago

4.5.6

6 years ago

4.5.5

6 years ago

4.5.4

6 years ago

4.5.3

6 years ago

4.5.2

6 years ago

4.5.0

6 years ago