1234567891011121314151617181920 |
- import {makeCombinedReducers} from 'sentry/utils/useCombinedReducer';
- import {tracePreferencesReducer} from 'sentry/views/performance/newTraceDetails/traceState/tracePreferences';
- import {traceRovingTabIndexReducer} from 'sentry/views/performance/newTraceDetails/traceState/traceRovingTabIndex';
- import {traceSearchReducer} from 'sentry/views/performance/newTraceDetails/traceState/traceSearch';
- import {traceTabsReducer} from 'sentry/views/performance/newTraceDetails/traceState/traceTabs';
- // Ensure that TS will throw an error if we forget to handle a reducer action case.
- // We do this because the reducer is combined with other reducers and we want to ensure
- // that we handle all possible actions from inside this reducer.
- export function traceReducerExhaustiveActionCheck(_x: never): void {}
- export const TraceReducer = makeCombinedReducers({
- tabs: traceTabsReducer,
- search: traceSearchReducer,
- rovingTabIndex: traceRovingTabIndexReducer,
- preferences: tracePreferencesReducer,
- });
- export type TraceReducerState = ReturnType<typeof TraceReducer>;
- export type TraceReducerAction = Parameters<typeof TraceReducer>[1];
|