This is the below code I am using while doing refresh the route
export default class MyController extend Controller {
@service router;
@action refresh() {
this.router.refresh()
}
}
While calling this.router.refresh() it throws like refresh function not present.
The
RouterServicedoes not have arefreshmethod yet. An RFC to add one was merged in October 2020 but has not been implemented yet.This hasn't changed with Ember Octane. The
RouterServicenever had arefreshmethod yet. Maybe you meant therefreshmethod ofRoute? This one exists both in Octane as well as before.