Redux store not connected

前端 未结 2 1488
慢半拍i
慢半拍i 2021-01-29 05:36

I am developing a Reactjs web application from scratch and encountered a tricky situation which i need help with. Whenever i navigate away from a particular url and navigate bac

2条回答
  •  囚心锁ツ
    2021-01-29 06:26

    You only call loadAAA at the top level of index.js, which only executes once when your page loads. If you want to dispatch it every time your XYZPage page renders, put in XYZ's componentDidMount

提交回复
热议问题