I have a basic loading component that displays a spinner and fetches a remote config file required by the rest of the app to function.
Is there a way to route all routes through the loading component first so the config data is loaded?
Or is there another recommendation to guarantee some common logic (fetching remote config) is executed prior to any routes being loaded regardless if the user enters the url to a specific route?