1.0.6 • Published 7 years ago

ractionx v1.0.6

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

redux-actions

Codeship Status for spaceship-labs/seeus codecov

Based on the awesome project redux-actions

Why another redux-actions package ?

Actually I just wrap a single function: createActions which now only receives an arbitrary number of string literals and supports their type to be prefixed

const prefix = 'some_random_prefix';
const types = [
  'SOME_RANDOM_TYPE_1', 
  'SOME_RANDOM_TYPE_2',
  'SOME_RANDOM_TYPE_3',
];
const {
  someRandomType1,
  someRandomType2,
  someRandomType3,
} = createActions(prefix, types);
expect(someRandomType1().type).toEqual(`${prefix}/${type1}`);
expect(someRandomType2().type).toEqual(`${prefix}/${type2}`);
expect(someRandomType3().type).toEqual(`${prefix}/${type3}`);
1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago