winglang / wing

A programming language for the cloud ☁️ A unified programming model, combining infrastructure and runtime code into one language ⚡
https://winglang.io
Other
5.05k stars 196 forks source link

Console allows resource interactions while app is loading #6798

Open eladcon opened 4 months ago

eladcon commented 4 months ago

I tried this:

Run this code. Notice the Invoke button on the cloud.Function is enabled while the app is still loading.

bring cloud;
bring util;
let s = new cloud.Service(inflight () => {
  log("service starts");
  util.sleep(15s);
  log("service ends");
});
let f = new cloud.Function(inflight () => {
  log("function invoked");
});

This happened:

The Invoke button on the cloud.Function is enabled while the app is still loading.

I expected this:

No response

Is there a workaround?

No response

Anything else?

No response

Wing Version

No response

Node.js Version

No response

Platform(s)

No response

Community Notes

github-actions[bot] commented 1 month ago

Hi,

This issue hasn't seen activity in 90 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!