gbif / gbif-web

Apache License 2.0
6 stars 9 forks source link

Unable to pass properties to tabs on detail pages #591

Open MortenHofft opened 3 months ago

MortenHofft commented 3 months ago

I find it inconvenient that it isn't possible to pass properties to subpages. For example I do a slow query on a parent route. But I then have to repeat data fetching it for any subsections.

we have the usedata from parent route thing, but it might not be part of that, but be a subsequent client call

danielvdm2000 commented 2 months ago

This is the build in way to handle that problem with react router dom https://reactrouter.com/en/main/hooks/use-outlet-context

What do you think of that?