Skip to content

[Feature] A reload method like location.reload() #296

Closed
@fnlctrl

Description

@fnlctrl

I have a router-view that needs to be reloaded after sending some POST requests and receiving whether the operation was successful, but

this.$route.router.go(this.$route.path)

doesn't trigger a reload even if the component's route.canReuse is set to false.

Now I can only do

created.apply(this) // `created` is the life-cycle hook function for the component

in the ajax callback to force the router-view to update itself, which is cumbersome.

Perhaps something like $route.router.reload() would be great, as it would be the counterpart of location.reload().

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions