Skip to content

Commit 45074d8

Browse files
committed
fix: move lazy call
1 parent e96c812 commit 45074d8

File tree

1 file changed

+5
-5
lines changed
  • module-federation-vite-react/host/src

1 file changed

+5
-5
lines changed

module-federation-vite-react/host/src/App.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import { of, tap } from 'rxjs';
33
import './App.css';
44
import Counter from './components/Counter';
55

6-
export default () => {
7-
const Remote = lazy(
8-
// @ts-ignore
9-
async () => import('remote/remote-app'),
10-
);
6+
const Remote = lazy(
7+
// @ts-ignore
8+
async () => import('remote/remote-app'),
9+
);
1110

11+
export default () => {
1212
useEffect(() => {
1313
of('emit')
1414
.pipe(tap(() => console.log("I'm RxJs from host")))

0 commit comments

Comments
 (0)