File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ export function LocationProvider(props) {
89
89
const RESOLVED = Promise . resolve ( ) ;
90
90
91
91
export function Router ( props ) {
92
- const [ c , update ] = useReducer ( c => c + 1 , 0 ) ;
92
+ const [ , update ] = useReducer ( c => c + 1 , 0 ) ;
93
93
94
94
const { url, query, wasPush, path } = useLocation ( ) ;
95
95
const { rest = path , params = { } } = useContext ( RouteContext ) ;
@@ -180,7 +180,7 @@ export function Router(props) {
180
180
if ( wasPush ) scrollTo ( 0 , 0 ) ;
181
181
if ( props . onLoadEnd && isLoading . current ) props . onLoadEnd ( url ) ;
182
182
isLoading . current = false ;
183
- } , [ c ] ) ;
183
+ } ) ;
184
184
185
185
// Note: curChildren MUST render first in order to set didSuspend & prev.
186
186
return [ h ( RenderRef , { r : cur } ) , h ( RenderRef , { r : prev } ) ] ;
You can’t perform that action at this time.
0 commit comments