Dispatch posts again and again to my redux state
I am working on a project which have multiple routes like /profile /admin /home
I am fetching posts from backend using Redux Toolkit query in profile page and getting posts successfully but when I go to another page and come back to profile and dispatch again the posts in the states
Dispatch posts again and again to my redux state. / Redux Toolkit
i am working on a project which have multiple routes like /profile /admin /home
i am fetching posts from backend using Redux Toolkit query in profile page and getting posts successfully but when i go to another page and come back to profile and dispatch again the posts in the states