-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
confusing map view, putJson appears with no apparent reason #6486
Comments
I believe this will be fixed by #6509
I want to say this could be expected behavior, but I'm curious to learn what you'd like to see as a user. Take this example: bring cloud;
let b = new cloud.Bucket();
let q = new cloud.Queue();
q.setConsumer(inflight () => {
b.put("file.txt", "Hello World");
}); I never call the queue's "push" method in the app code. But the Wing Console shows "push()" in the map. @ekeren I'm curious does this feel like the same problem to you? Or do you think the problem showing (BTW, we could hide the inner function if needed so that it instead looks like the map below) |
I don't understand why I would expect to see a:
|
@ekeren I'm not sure I understand but maybe a synchronous discussion will help. 😄 BTW, I want to share one more example where I created my own Queue class: bring cloud;
class Queue {
b: cloud.Bucket;
new() {
this.b = new cloud.Bucket();
nodeof(this.b).hidden = true;
}
pub inflight push(msg: str) {
this.b.put("file.txt", msg);
}
pub inflight pop() {
this.b.delete("file.txt");
}
pub inflight boring() {
log("this method does not interact with other resources");
}
pub setConsumer(fn: inflight (str): void) {
this.b.onUpdate(fn);
}
}
let b = new cloud.Bucket();
let q = new Queue();
q.setConsumer(inflight () => {
b.list();
}); The Even though I do not have a To me what may be confusing is not all of my class's methods are shown - the Wing Console doesn't show there is a |
I'd prefer to have the public API of every class, too. The private methods, not that important IMO. |
I tried this:
This happened:
I expected this:
putJson
Is there a workaround?
No response
Anything else?
No response
Wing Version
0.73.46
Node.js Version
No response
Platform(s)
No response
Community Notes
The text was updated successfully, but these errors were encountered: