@indlekofer/media

1.2.4 • Public • Published

@indlekofer/media

reducer for media related changes.

export functions

setup

setup will be called at startup automaticaly (without force) and creates the store reducer. accepts one argument force (default true)

unset

remove the reducer. for cleanup methods and testing

handleChange

action with two arguments (key and value), no dispatch is needed

handleChangeAll

action with one argument (object of key values), no dispatch is needed

export constants

REDUCER

the actual injected reducers name

TYPE_CHANGE

dispatched action type for handleChange

TYPE_CHANGE_ALL

dispatched action type for handleChangeAll

Readme

Keywords

none

Package Sidebar

Install

npm i @indlekofer/media

Weekly Downloads

1

Version

1.2.4

License

MIT

Unpacked Size

6.16 kB

Total Files

6

Last publish

Collaborators

  • daind