I'm currently studying react for my final project in college and I encounter some problem that I dont know whether its normal or not. The Error is: ...
I'm sharing info located on mi RTK store, between two diferentes routes / components.
Each view share the element
products , that's why when I go from one route to another, if I search something on route 1 , and then I go to route 2 this one still display the search I made on the first one.
I need to clear the store everytime the hash changes, I was thinking on using onHashChange, but I don't know how to apply that to this case inside React.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:firstname.lastname@example.org.