React Redux - Dispatch action in useEffect only if the previous route is same as new route

前端 未结 0 1042
梦毁少年i
梦毁少年i 2021-01-14 06:18

I\'m making a social media app and I have a state for newsfeed stored in redux which I want to preserve even when route changes.

The Problem

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