How to mock getRouteApi ?
So I have the following component that uses the
getRouteApi to grab the teamId from the url. This component works very well when I render it in /teams/:teamId. However, now I want to show this component in my home page. And because I am using
getRouteApi the component will not render outside of the /teams/:teamId page.Is there a way I could wrap this component and overwrite the router context and manually set a teamId ? I am using a similar pattern with react query, I have wrapped my landing page with a new queryClient with a bunch of dummy data, so that I can use
useQuery without any problems.