Akryum / Akryum/vue-router-multi-view
activated / deactivated functions are triggered much time when changing route
- Linguagem predominante
- JavaScript
- Estrelas
- 86
- Forks
- 9
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
Hi there,
Thank you for good repo. Now I have an error like above title.
When I change route, activated / deactivated hooks will be called many times.
```
activated() {
console.log("---> activated", this.$attrs["data-route-name"]);
},
deactivated() {
console.log("<--- deactivated", this.$attrs["data-route-name"]);
},
```
Below is logs when switching from 'app-chat' to 'app-channel'
```
16:09:37.454 index.vue:79 <--- deactivated app-chat
16:09:37.455 index.vue:71 ---> activated app-chat
16:09:37.456 index.vue:79 <--- deactivated app-chat
16:09:37.458 index.vue:72 ---> activated app-channel
16:09:37.459 index.vue:80 <--- deactivated app-channel
16:09:37.461 index.vue:72 ---> activated app-channel
```
Could you help me?
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Avaliação
Esta issue ainda não foi avaliada.