gajus / redux-immutable

redux-immutable is used to create an equivalent function of Redux combineReducers that works with Immutable.js state.
Other
1.88k stars 82 forks source link

Can't use Immutable record as root state after upgrading to 3.0.7 #38

Closed asvetliakov closed 8 years ago

asvetliakov commented 8 years ago

After upgrading to 3.0.7 i'm getting this error now:

(program):1 Uncaught TypeError: Value of argument "inputState" violates contract.

Expected:
?Immutable.Map

Got:
RootState {
  _map: Map {
    size: number;
    _root: void;
    __ownerID: void;
    __hash: void;
    __altered: boolean;
  };
}
gajus commented 8 years ago

It appears that the package was published using NODE_ENV=development.

https://github.com/gajus/redux-immutable/blob/6f337063fcbb2a56c1438c9015a8438e54960b2a/.babelrc#L12

I am in the process of setting up semantic-release. Will fix this issue as soon as that is in place.

ponelat commented 8 years ago

this is hurting me a little... is there a workaround?

gajus commented 8 years ago

v3.0.8 has been published. Sorry for the delay.

ponelat commented 8 years ago

awesome... I'll give it a bash!