when looking for the page within the outlet, reject addons wrapper as well as addons, because different versions of react router use different numbers of wrappers. Should be compatible with all 6.* versions now

Signed-off-by: Morgan <mbentell@spotify.com>
This commit is contained in:
Morgan
2022-12-19 12:27:41 +01:00
parent bb1122ba22
commit 6aa2b965eb
5 changed files with 59 additions and 2 deletions
+4
View File
@@ -27,6 +27,10 @@ import {
import { TechDocsAddonLocations, TechDocsAddonOptions } from './types';
/**
* Key for each addon.
* @public
*/
export const TECHDOCS_ADDONS_KEY = 'techdocs.addons.addon.v1';
/**
+1
View File
@@ -25,6 +25,7 @@ export {
createTechDocsAddonExtension,
TechDocsAddons,
TECHDOCS_ADDONS_WRAPPER_KEY,
TECHDOCS_ADDONS_KEY,
} from './addons';
export { techdocsApiRef, techdocsStorageApiRef } from './api';
export type { SyncResult, TechDocsApi, TechDocsStorageApi } from './api';