Skip to content

migration vue-router 0.7 data guard suggestion #825

Open
@frankOnTheWay

Description

@frankOnTheWay

For the data migration, it might be better using thenext callback in beforeRouteEnter to replace data for 2 reasons.
First it can be triggered in create time, but watch cannot. (actually, I haven't know the details of watch.. I don't know where it placed in life-cycle diagram.)
Second it has similar parameter like data hook. I tried the data fetching section's way but in created hook, I cannot get from .
I am newbie to Vue but I am working on migration. And the reason I suggest this is that I have a keep-alive component and its data hook need from and this

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