Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

Helpful developer warnings

Compare
Choose a tag to compare
@acdlite acdlite released this 08 Nov 20:33
· 471 commits to master since this release

If you use Recompose's compose function, it will print a warning if a higher-order component helper has insufficient parameters. For example, if you forget to pass an initial state to withReducer:

compose(
  withReducer('state', 'dispatch', reducer), // Forgot initialState
  ...otherHelpers
)(BaseComponent)

Attempted to compose withReducer() with other higher-order component helpers, but it has been applied with 1 too few parameters. Check the implementation of .

These warnings are only printed in development. In production, compose is an alias for lodash's compose.