In the withMethodData console log, the props is always one state behind..
So in withData, this is the log: "Current page 1"
in withMethodData, this is the log: "Current page 1'"
If I execute onNextPageClick, withData logs: "Current page 2"
BUT withMethodData logs "'Current page 1"..
Is that normal behavior?
I submitted a pull request. Could you have a look?
In the
withMethodData
console log, the props is always one state behind.. So inwithData
, this is the log: "Current page 1" inwithMethodData
, this is the log: "Current page 1'"If I execute
onNextPageClick
,withData
logs: "Current page 2" BUTwithMethodData
logs "'Current page 1"..Is that normal behavior? I submitted a pull request. Could you have a look?
2