useEffect always accessing previous value from redux

前端 未结 0 1522
心在旅途
心在旅途 2021-02-07 16:33

value is coming from a redux store in props. I want to use useEffect to set the state of a value displayed on the screen. useEffect has a very unexpected behavior:<

相关标签:
回答
  • 消灭零回复
提交回复
热议问题