Skip to content

router.push & router.replace to return promise if callbacks are not provided #1769

Closed
@charles-mathieus-jomedia

Description

What problem does this feature solve?

It would help preventing callback hell... Would be more consistent with vue js api...

What does the proposed API look like?

router.push('/new/url').then(() => doSomeCoolStuff())

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