@module-federation/bridge-react
Advanced tools
Comparing version 0.0.0-next-20240620034636 to 0.0.0-next-20240620052430
# @module-federation/bridge-react | ||
## 0.0.0-next-20240620034636 | ||
## 0.0.0-next-20240620052430 | ||
### Patch Changes | ||
- @module-federation/bridge-shared@0.0.0-next-20240620034636 | ||
- @module-federation/bridge-shared@0.0.0-next-20240620052430 |
@@ -99,9 +99,2 @@ "use strict"; | ||
} | ||
if (ReactRouterDOM__namespace.UNSAFE_RouteContext && enableDispathPopstate) { | ||
routerContextVal = React.useContext(ReactRouterDOM__namespace.UNSAFE_RouteContext); | ||
if (routerContextVal && routerContextVal.matches && routerContextVal.matches[0] && routerContextVal.matches[0].pathnameBase) { | ||
basename = routerContextVal.matches[0].pathnameBase; | ||
} | ||
enableDispathPopstate = (routerContextVal == null ? void 0 : routerContextVal.matches) && (routerContextVal == null ? void 0 : routerContextVal.matches.length) > 0; | ||
} | ||
const LazyComponent = React.useMemo(() => { | ||
@@ -108,0 +101,0 @@ return React.lazy(async () => { |
import * as React from "react"; | ||
import React__default, { useContext, useMemo, useRef, useState, useEffect } from "react"; | ||
import React__default, { useMemo, useRef, useState, useEffect } from "react"; | ||
import * as ReactRouterDOM from "react-router-dom"; | ||
@@ -80,9 +80,2 @@ import { L as LoggerInstance, f, a as atLeastReact18, R as RouterContext } from "./context-CPtN38Ur.js"; | ||
} | ||
if (ReactRouterDOM.UNSAFE_RouteContext && enableDispathPopstate) { | ||
routerContextVal = useContext(ReactRouterDOM.UNSAFE_RouteContext); | ||
if (routerContextVal && routerContextVal.matches && routerContextVal.matches[0] && routerContextVal.matches[0].pathnameBase) { | ||
basename = routerContextVal.matches[0].pathnameBase; | ||
} | ||
enableDispathPopstate = (routerContextVal == null ? void 0 : routerContextVal.matches) && (routerContextVal == null ? void 0 : routerContextVal.matches.length) > 0; | ||
} | ||
const LazyComponent = useMemo(() => { | ||
@@ -89,0 +82,0 @@ return React__default.lazy(async () => { |
{ | ||
"name": "@module-federation/bridge-react", | ||
"version": "0.0.0-next-20240620034636", | ||
"version": "0.0.0-next-20240620052430", | ||
"publishConfig": { | ||
@@ -28,3 +28,3 @@ "access": "public" | ||
"react-error-boundary": "^4.0.13", | ||
"@module-federation/bridge-shared": "0.0.0-next-20240620034636" | ||
"@module-federation/bridge-shared": "0.0.0-next-20240620052430" | ||
}, | ||
@@ -31,0 +31,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51328
1428
+ Added@module-federation/bridge-shared@0.0.0-next-20240620052430(transitive)
- Removed@module-federation/bridge-shared@0.0.0-next-20240620034636(transitive)
Updated@module-federation/bridge-shared@0.0.0-next-20240620052430