Answer the question
In order to leave comments, you need to log in
Object properties disappear, how is this possible?
I met a very strange behavior of an object that is passed through next()
y Rx.Subject()
from RxJs.
rxSubject.subscribe({
next: (state) => {
console.log(state);
console.log(JSON.stringify(state));
},
});
Answer the question
In order to leave comments, you need to log in
at the moment when you output data to the console, the object is empty. At the moment when you open it in the console, it is already full.
What if it's the other way around?
rxSubject.subscribe({
next: (state) => {
console.log(JSON.stringify(state));
console.log(state);
},
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question