mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-18 05:02:24 +08:00
Add useful comment
This commit is contained in:
parent
6734525950
commit
274101c21c
@ -503,7 +503,7 @@ export class Instrumenter {
|
||||
try {
|
||||
const res = arg(...args);
|
||||
if (res instanceof Promise) {
|
||||
willRestore = true;
|
||||
willRestore = true; // We need to wait for the promise to finish before restoring
|
||||
return res.finally(restore);
|
||||
}
|
||||
return res;
|
||||
|
Loading…
x
Reference in New Issue
Block a user