File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -419,6 +419,16 @@ const resume = () => {
419
419
}
420
420
}
421
421
422
+ /**
423
+ * Force reload active hash
424
+ */
425
+ const reload = ( ) => {
426
+ if ( ! isNavigating ( ) ) {
427
+ const hash = getActiveHash ( )
428
+ navigate ( hash , { reload : true } , false )
429
+ }
430
+ }
431
+
422
432
/**
423
433
* Query if the Router is still processing a Request
424
434
* @returns {boolean }
@@ -527,6 +537,7 @@ export default {
527
537
getHistoryState,
528
538
replaceHistoryState,
529
539
getQueryStringParams,
540
+ reload,
530
541
symbols,
531
542
App : RoutedApp ,
532
543
// keep backwards compatible
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ export const incorrectParams = (cb, route) => {
113
113
114
114
export const getQueryStringParams = ( hash = getActiveHash ( ) ) => {
115
115
const resumeHash = getResumeHash ( )
116
- if ( hash === '$' || resumeHash ) {
116
+ if ( ( hash === '$' || ! hash ) && resumeHash ) {
117
117
if ( isString ( resumeHash ) ) {
118
118
hash = resumeHash
119
119
}
You can’t perform that action at this time.
0 commit comments