When the request is already pending, front/render the app if it exists
This commit is contained in:
parent
8f63529932
commit
e782ff237f
1 changed files with 11 additions and 0 deletions
|
|
@ -88,6 +88,17 @@ export async function query(
|
|||
});
|
||||
|
||||
if (promises.has(request.id)) {
|
||||
|
||||
// Render / bring to front if the query has an app associated with it
|
||||
const query = queries.get(request.id);
|
||||
if (query?.app) {
|
||||
if (query.app.rendered) {
|
||||
query?.app?.bringToFront();
|
||||
} else {
|
||||
query.app.render({ force: true });
|
||||
};
|
||||
};
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue