Replace react-router-scroll-4 with inlined implementation (#36253)

This commit is contained in:
diondiondion authored and GitHub committed 2025-09-25 12:26:50 +00:00
1 parent 6d2493ca7c
commit d801cf8e59
12 files changed
+302 -72

No files matched your search

@@ -1,6 +1,7 @@
import type { PropsWithChildren } from 'react';
import type React from 'react';
import type { useLocation } from 'react-router';
import { Router as OriginalRouter, useHistory } from 'react-router';
import type {
@@ -18,7 +19,9 @@ interface MastodonLocationState {
mastodonModalKey?: string;
}
type LocationState = MastodonLocationState | null | undefined;
export type LocationState = MastodonLocationState | null | undefined;
export type MastodonLocation = ReturnType<typeof useLocation<LocationState>>;
type HistoryPath = Path | LocationDescriptor<LocationState>;