File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 6
6
Outlet ,
7
7
Scripts ,
8
8
ScrollRestoration ,
9
- useTransition ,
9
+ useNavigation ,
10
10
} from "@remix-run/react" ;
11
11
import NProgress from "nprogress" ;
12
12
import nProgressStyles from "nprogress/nprogress.css" ;
@@ -24,7 +24,7 @@ export const meta: MetaFunction = () => ({
24
24
} ) ;
25
25
26
26
export default function App ( ) {
27
- const transition = useTransition ( ) ;
27
+ const transition = useNavigation ( ) ;
28
28
useEffect ( ( ) => {
29
29
// when the state is idle then we can to complete the progress bar
30
30
if ( transition . state === "idle" ) NProgress . done ( ) ;
Original file line number Diff line number Diff line change 20
20
"@remix-run/dev" : " ^1.19.3" ,
21
21
"@remix-run/eslint-config" : " ^1.19.3" ,
22
22
"@types/nprogress" : " ^0.2.0" ,
23
- "@types/react" : " ^18.0.25 " ,
24
- "@types/react-dom" : " ^18.0.8 " ,
25
- "eslint" : " ^8.27 .0" ,
26
- "typescript" : " ^4.8 .4"
23
+ "@types/react" : " ^18.0.34 " ,
24
+ "@types/react-dom" : " ^18.0.11 " ,
25
+ "eslint" : " ^8.38 .0" ,
26
+ "typescript" : " ^5.0 .4"
27
27
},
28
28
"engines" : {
29
29
"node" : " >=14.0.0"
You can’t perform that action at this time.
0 commit comments