roact-rodux
roact-rodux copied to clipboard
Internal props being shoved in on Store change in Wally version
I was integrating multiplayer in my game and I came across this little bug:
Huh, that's funny. I was using an earlier version of RoactRodux and it was fine before switching to the Wally version...
If I print the props before a mapStateToProps call (line 97), like so, and add a print in my mapStateToProps:
I get this output:
After doing a little digging, it turns out that whenever the store updates, it shoves the Connection's raw props into mapStateToProps, instead of the Connection's innerProps.
If I pass in the innerProps like so:
It works like a charm: