React - UseEffect hook with Redux store in dependency array and which updates the state ends in an endless loop

前端 未结 0 744
感动是毒
感动是毒 2021-02-03 18:31

I have an array of certain objects in my redux store and I retrieve it like so:

const storeExpenses = useSelector(({ expenses }: RootState) => expenses.items));<

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