You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
The text was updated successfully, but these errors were encountered:
thenerdie
changed the title
Internal props being shoved in on Store change
Internal props being shoved in on Store change in Wally version
Feb 13, 2022
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 theConnection
'sinnerProps
.If I pass in the
innerProps
like so:It works like a charm:
The text was updated successfully, but these errors were encountered: