Add RouterHistory to replace syncing for compatibility

This commit is contained in:
Bill Thornton
2024-07-24 15:12:10 -04:00
parent 3315ce1e89
commit dce7a36fcf
7 changed files with 86 additions and 85 deletions
+2 -3
View File
@@ -1,5 +1,5 @@
import { CollectionType } from '@jellyfin/sdk/lib/generated-client/models/collection-type';
import { Action, createHashHistory } from 'history';
import { Action } from 'history';
import { appHost } from '../apphost';
import { clearBackdrop, setBackdropTransparency } from '../backdrop/backdrop';
@@ -15,8 +15,7 @@ import { queryClient } from 'utils/query/queryClient';
import { getItemQuery } from 'hooks/useItem';
import { toApi } from 'utils/jellyfin-apiclient/compat';
import { ConnectionState } from 'utils/jellyfin-apiclient/ConnectionState.ts';
export const history = createHashHistory();
import { history } from 'RootAppRouter';
/**
* Page types of "no return" (when "Go back" should behave differently, probably quitting the application).