- Move import page, tabs, workflow state, and route tests into React-owned route slices - Preserve shell gating, staging queries, album matching, singles matching, auto-import, and queue behavior - Add migration plan snapshot so cleanup/refinement can build on a stable baseline
15 lines
517 B
TypeScript
15 lines
517 B
TypeScript
import { createFileRoute } from '@tanstack/react-router';
|
|
|
|
import {
|
|
importStagingGroupsQueryOptions,
|
|
importStagingSuggestionsQueryOptions,
|
|
} from './-import.api';
|
|
import { AlbumImportTab } from './-ui/album-import-tab';
|
|
|
|
export const Route = createFileRoute('/import/album')({
|
|
loader: async ({ context }) => {
|
|
void context.queryClient.prefetchQuery(importStagingGroupsQueryOptions());
|
|
void context.queryClient.prefetchQuery(importStagingSuggestionsQueryOptions());
|
|
},
|
|
component: AlbumImportTab,
|
|
});
|