While I am using the subscribe HoC in the following way
subscribe(mapContextToProps)(AnyComponent)
I found the mapContextToProps function is called twice. The first time when it's called, there is no context information passed in, and in the second call, the context information from ProviderContext is provided.
Hi, I found an issue in the latest release.
While I am using the subscribe HoC in the following way
I found the
mapContextToProps
function is called twice. The first time when it's called, there is no context information passed in, and in the second call, the context information from ProviderContext is provided.As a walk around, I have to use
Which works for now.