Skip to content

Releases: NullVoxPopuli/react-state-helpers

Mass setting of wrapping state.

20 Oct 20:48

Choose a tag to compare

When using the state wrapper, you can now set the 'initial' state:

@wrapStateHelpers
export default class Example extends Component {
  componentDidMount() {
    this.props.setWrappingState({
      userName: ''
    });
  },

  componentDidReceiveProps(nextProps) {
    this.props.setWrappingState({
       // if you are manually passing render props in and want that to override
       // the internally managed state at nextProps.values.userName
      userName: nextProps.userName
    });
  }
});

1.6.2

20 Oct 23:46

Choose a tag to compare

This version had a build/release file inclusion issue. Please use 1.6.4

sumbit

31 May 02:39

Choose a tag to compare

...

ES5 trash

31 May 00:36

Choose a tag to compare

Now with proper default export.

OMG package.json#files

30 May 17:20

Choose a tag to compare

Well... That was dumb.

New Feature:

  • HOC Component, default export

Lots of Cleanup / File splitting

v1.3.0

08 May 16:24

Choose a tag to compare

Added withValue.

See README.md for usage with redux actions.