samdenty / console-feed

Captures console.log's into a React Component 🔥
https://stackblitz.com/~/github.com/samdenty/console-feed
MIT License
670 stars 109 forks source link

Promise shows as pending even after it's resolved #86

Open lbogdan opened 3 years ago

lbogdan commented 3 years ago

Consider this code:

const testPromise = new Promise((resolve) =>
  setTimeout(() => resolve(42), 1000)
);

testPromise.then(() => console.log(testPromise));

Expected output (from Chrome's console):

image

Actual output:

image

Reproduction sandbox: https://codesandbox.io/s/console-feed-resolved-promise-xye1i

Related CodeSandbox issue: https://github.com/codesandbox/codesandbox-client/issues/5830

isaacking5 commented 3 years ago

Hi.. @all

Is anyone got any workaround for this issue? If yes, let me know the workaround, I am too stuck with the issue.