You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was doing some tests on my services and noticed that the service is started 2 times and it seems to me the second instance replaces the first one, I put a console.log in the class constructor and it was fired 2 times.
Expected Behavior
The expected behavior was that the class's constructor was called only once, which is more strange is that if you have to add other parameters to the constructor (DI) the first time the constructor is called the additional parameters are undefined and only exist on the second call .
Failure Information
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Create a service using TS and classes;
Put a console.log inside the constructor;
Export the class with a function decorator;
Current Behavior
I was doing some tests on my services and noticed that the service is started 2 times and it seems to me the second instance replaces the first one, I put a console.log in the class constructor and it was fired 2 times.
Expected Behavior
The expected behavior was that the class's constructor was called only once, which is more strange is that if you have to add other parameters to the constructor (DI) the first time the constructor is called the additional parameters are undefined and only exist on the second call .
Failure Information
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Create a service using TS and classes;
Put a console.log inside the constructor;
Export the class with a function decorator;
Reproduce code snippet
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
1.3.0
0.14.16
v14.16.1
MacOS BigSur 11.4
Failure Logs
The text was updated successfully, but these errors were encountered: