Skip to content
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

logging events #83

Closed
fmmattioni opened this issue Jan 31, 2021 · 3 comments
Closed

logging events #83

fmmattioni opened this issue Jan 31, 2021 · 3 comments

Comments

@fmmattioni
Copy link

Hey @JohnCoene!

While debugging an app using the latest version of {waiter}, I have noticed that waiter.js has been logging the shiny events to the console:

// remove when output receives value
$(document).on('shiny:value', function(event) {
console.log(event);
if(waiter_to_hide.indexOf(event.name) > 0){
hide_waiter(event.name);
}
});

Just wondering if this is intended?

@JohnCoene
Copy link
Owner

Thanks! I removed it.

@trafficonese
Copy link

Here is another one. ;)

console.log('idle');

The app also always starts with this message:
waiter_show_on_load - shiny not connected yet: Shiny.setInputValue is not a function

@JohnCoene
Copy link
Owner

Thanks, I removed the console.log('idle')

I placed the second message on purpose; it's good to know I think because we need waiter_show_on_load to run before shiny connects in order to avoid having app content flash before the loading screen shows. Therefore with that function the event cannot be send to the server (shiny is not connected yet) but there's no real way to communicate that to the user other than with a console message (to the best of my knowledge).

console.log("waiter_show_on_load - shiny not connected yet:", err.message);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants