#Lifecycle methods not called

1 messages · Page 1 of 1 (latest)

knotty glade
#

When I do anything in the browser after the component is opened, it suddenly calls the lifecycle method

#

e.g. I could press the "1" button on my keyboard, or press F12 to open dev tools

#

or click left mouse button once

#

the constructor() of that component is called properly btw, only the lifecycle methods aren't

knotty glade
#

lmao this is the most random problem ever

#

I am calling it from inside an onClick() listener of the ng2-charts/chart.js lib

#

it does seem to have some relation with that

#

if i call it for example inside AfterViewInit of the component it opens it properly and calls the lifecycle hooks

#

I have no idea wth is happening lol