question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Errors beforeDestroy component

See original GitHub issue

Testing 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:open
  • Created 6 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
hilongjwcommented, Jun 8, 2017

@hazzo got it thank you, I’ll check it later.

1reaction
hilongjwcommented, Jun 7, 2017

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found