F
F
Fedor2020-12-08 16:43:02
Google Chrome
Fedor, 2020-12-08 16:43:02

Why does it display different promise results in Google Chrome and Firefox browsers?

Greetings! There was such a problem. In different browsers, after refreshing the page, it displays different promise statuses. Why is this happening?

Google Chrome
5fcf8217b775a082415189.png

result: FireFox result:
5fcf82a2b5b32676828727.png

Accordingly, I can't continue working in FF and have to switch to Chrome.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2020-12-08
@Kozack

This is because chrome does not display the object in the state it was in at the time of the output, but in the state it is in now.
That is, both chrome and FF output a promise in the pending status, but then the promise is resolved, and chrome changes it in the console. And FF leaves it as it was.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question