Open
Description
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