For created() and beforeRouteUpdate(), most of the code is duplicated. The reason for this is that I couldn't get it to work otherwise, given that they are both async components and at the time I probably didn't know enough about how to insert util functions into async functions.
For
created()
andbeforeRouteUpdate()
, most of the code is duplicated. The reason for this is that I couldn't get it to work otherwise, given that they are both async components and at the time I probably didn't know enough about how to insert util functions into async functions.There should be a way to deduplicate this code.