fix(transaction-summary): dont refetch totals, so tx list doesnt rerender (#49507)
- On the Transaction Summary page, currently window focus event (tab in,
alt tab) trigger a re-rendering of the transaction list on the summary
page. I found this extremely annoying. See the replay in the linked
below issue to se what i'm talking about.
- This re-render seems to be triggered by the `getTotalsEventView`
`queryData`. I'm not quite sure why, as I believe this table is rendered
by
https://github.com/getsentry/sentry/blob/66e7314e29f42fe5fe63f6da348fc8cad64411dc/static/app/components/discover/transactionsList.tsx#L365
- Regardless, I've made it so you can pass in `useQuery` options to
`BaseDiscoverQueryProps`, and am now passing this parameter in the
`queryData` call to `useDiscoverQuery`.
- I don't think this data really goes stale that quickly to where it
needs a refresh every page focus, so I think this should be fine. We
should consider using this property in other places where we deem its
not necessary to refresh this data on window focus.
Resolves https://github.com/getsentry/sentry/issues/47936