My folder structure looks like this:
/ pages
    / [project_id]
        / index.jsx    <- make this (or another external component) call an action before other pages will load
        / assets.jsx
        / information.jsx
        / ...
Before I'm accessing the rest of the files, i need a prefetched data saved in a redux state, which needs to be done before any page accessing it loads.
The problem being, is that it requires me to add a useEffect hook inside each and every file to load the information i need.
Is there a way to "wrap" these pages with a single action call?
 
     
    