A better way to do this might just be to have a dynamic route instead of an explicit one. That way instead of creating one route for each pool (and thus having to wait for all pools to be loaded, which might not work), we just have two routes for deposit and withdraw.
<Route exact path="/pools/:poolName/deposit" ...>
Then use match.params.poolName in the child to get pool data.
A better way to do this might just be to have a dynamic route instead of an explicit one. That way instead of creating one route for each pool (and thus having to wait for all pools to be loaded, which might not work), we just have two routes for deposit and withdraw.
Then use
match.params.poolName
in the child to get pool data._Originally posted by @hammeiam in https://github.com/saddle-finance/saddle-frontend/pull/1184#discussion_r927953627_