Skip to content

Commit 38f664c

Browse files
committed
chore: only noSSR use effect
1 parent 63c4074 commit 38f664c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/bridge/bridge-react/src/lazy/createLazyComponent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,13 +315,13 @@ export function createLazyComponent<T, E extends keyof T>(
315315
exportName,
316316
)}`,
317317
);
318+
// eslint-disable-next-line max-lines
318319
}
319320
});
320321

321322
return (props: ComponentType) => {
322-
// eslint-disable-next-line max-lines
323323
const { key, ...args } = props;
324-
if (globalThis.FEDERATION_SSR && !options.noSSR) {
324+
if (!options.noSSR) {
325325
return (
326326
<AwaitDataFetch
327327
resolve={getData(options.noSSR)}

0 commit comments

Comments
 (0)