I'm not experienced in React and Redux so apologies if this is too trivial, but I couldn't find the answer myself.
I have a React 17 app using Redux 8 and React Router DOM 6. In short, I need to create a filter that will execute every time a new request comes into the app. It must read a query string param and pass it down to the slices. If the query string param is not present, the app just executes normally.
What's the right way to implement that in React / Redux? I already have a middleware for instance that executes some logic for a specific action, which obviously is executed for every request. Should I create another middleware, read the query param and pass it on to the slice? Won't that add too much overhead?
Thank you