redux-dynamic-modules icon indicating copy to clipboard operation
redux-dynamic-modules copied to clipboard

undefined state on first render after dynamicially loading module in react-redux v6

Open sanchitbansal10 opened this issue 5 years ago • 7 comments

This is an old issue and a fix was done for this. https://github.com/microsoft/redux-dynamic-modules/pull/59

I faced this while working with react-redux v6

Steps to reproduce...Run the Counter example in packages with react-redux v6..On first render you get an undefined state.

sanchitbansal10 avatar Jan 30 '20 17:01 sanchitbansal10

@sanchitbansal10 I am facing the same issue. Were you able to find a fix for this?

I am using v5.2.0

samratshaw avatar Apr 05 '20 09:04 samratshaw

@abettadapur @navneet-g Any idea how to fix this?

samratshaw avatar Apr 05 '20 09:04 samratshaw

@footyapps27 hey I had to upgrade my react-redux package.. I can try and raise a PR but no maintainer seems to be around

sanchitbansal10 avatar Apr 06 '20 03:04 sanchitbansal10

@sanchitbansal10 Which version of react-redux solved the issue for you?

samratshaw avatar Apr 06 '20 04:04 samratshaw

v7

sanchitbansal10 avatar Apr 06 '20 04:04 sanchitbansal10

v7

That's weird. I am using v7 as well, but still getting undefined on the first load. :/

samratshaw avatar Apr 06 '20 06:04 samratshaw

@footyapps27 You can try running this sample app https://github.com/microsoft/redux-dynamic-modules/tree/master/packages/counter-example

with v6 and v7...It doesn't return undefined for v7 Maybe something else is wrong

sanchitbansal10 avatar Apr 06 '20 06:04 sanchitbansal10