-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b38b570
commit f993b7b
Showing
6 changed files
with
425 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export * from './get-routes-config'; | ||
export * from './assert-is-defined'; | ||
export * from './create-nested-routes' | ||
export * from './create-nested-routes.tsx' | ||
export * from './is-defined'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const pageA = () => { | ||
return <div data-testid={'page_a'} />; | ||
}; | ||
|
||
export default pageA; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { lazy } from 'react'; | ||
|
||
export const getLazyLoadedPageA = (timeout: number) => | ||
lazy(() => { | ||
return new Promise((resolve) => { | ||
setTimeout(() => { | ||
import('./page-a').then((module) => { | ||
resolve({ default: module.default as never }); | ||
}); | ||
}, timeout); | ||
}); | ||
}); |
Oops, something went wrong.