Skip to content

Releases: collardeau/react-with-state-props

Version 2.0.4

30 Mar 10:26

Choose a tag to compare

  • fix inconsistent behavior with derived state where it would trigger unwanted intermediary state renders

Version 2.0.3

27 Mar 11:47

Choose a tag to compare

  • better handling of user mistakes if missing required props or when passing in bad props

Version 2.0.2

26 Mar 19:58

Choose a tag to compare

  • only render user prop when state is loaded
  • add proptype validation

Version 2.0.1

26 Mar 15:57

Choose a tag to compare

  • Fix optional types

Version 2.0.0

26 Mar 13:21

Choose a tag to compare

Move to Typescript!
Simplify/Improve API :)

const propTypes = {
  render: PropTypes.func.isRequired,
  state: PropTypes.object.isRequired,
  withHandlers: PropTypes.objectOf(PropTypes.func),
  omitProps: PropTypes.arrayOf(PropTypes.string),
  deriveState: PropTypes.arrayOf(
    PropTypes.shape({
      onStateChange: PropTypes.oneOfType([
        PropTypes.arrayOf(PropTypes.string),
        PropTypes.string
      ]).isRequired,
      derive: PropTypes.func.isRequired
    })
  )
};

Version 1.0.0

21 Mar 16:20

Choose a tag to compare

rename accepted props

Version 0.3.1

16 Mar 21:29

Choose a tag to compare

Bug fix where props were static in compound handlers (withHandlers)

Version 0.3.0

07 Mar 08:37

Choose a tag to compare

  • add omitHandlers prop
  • add flatten props

Version 0.2.1

06 Mar 12:40

Choose a tag to compare

  • loaded state set to true on all state changes