Closed jackypan1989 closed 5 years ago
I wanna update query in the same page, so I have to use shallow option. But the example below shows that inconsistency (only works with routeName)
Routes Config
.add('explore', '/explore', 'mypages/explore')
Router.replaceRoute('explore', { myParams }, { shallow: true })
Router.replaceRoute('/explore', { myParams }, { shallow: true })
In the second example, use .replace instead of .replaceRoute
.replace
.replaceRoute
I wanna update query in the same page, so I have to use shallow option. But the example below shows that inconsistency (only works with routeName)
Routes Config
Work
Not work