Errors beforeDestroy component
See original GitHub issueTesting the component I get errors when I go to another route before destroying the component.
Example:
Error in beforeDestroy hook: "TypeError: Cannot read property 'height' of undefined"
found in
---> <RecyclerView>
<Thread> at C:\wamp64\www\vue_mobile_material\src\components\thread\Thread.vue
<QLayout>
<Layout> at C:\wamp64\www\vue_mobile_material\src\components\Layout.vue
<App> at C:\wamp64\www\vue_mobile_material\src\App.vue
<Root>
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (5 by maintainers)
Top Results From Across the Web
Why is beforeDestroyed function not working? - Stack Overflow
Worked out fine. Howerve, you made a type I thinkg in the clearInterval part. This needs to be this.interval as parameters. – egx....
Read more >API - Vue.js
Assign a handler for uncaught errors during component render function and watchers. The handler gets called with the error and the Vue instance....
Read more >Vue js tutorial for beginners # 21 beforeDestroy and destroyed ...
Vue js tutorial for beginners #22 fetch data from API | axios · Easy Way to Understand the VueJS Component Lifecycle Hooks ·...
Read more >Lifecycle Hooks - Vue 3 Composition API
errorCaptured - Called when an error from any descendent component is captured. ... In Vue 3 beforeDestroy() can also be written as beforeUnmount() ......
Read more >Demystifying the Vue Lifecycle - Jaime Jones
At the point where beforeDestroy runs, the component instance is still fully functional. This means that you can still access data items and ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@hazzo got it thank you, I’ll check it later.
@hazzo because my demo is using the local mock data, the problem is that all data will be loaded when scrolling to the end, and I’ll fix it.