Answer the question
In order to leave comments, you need to log in
How to dynamically get property updates from the new Class() singleton if they happen in the constructor?
There is a singleton class with the isActive property, the value is overwritten in the constructor. How to receive isActive changes outside the class in real time? Using mobx didn't help.
const track = new Class();
console.log(track.isActive)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question