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

"Shiny.setInputValue is not a function" on load #66

Closed
avsdev-cw opened this issue Aug 30, 2023 · 3 comments · Fixed by #72
Closed

"Shiny.setInputValue is not a function" on load #66

avsdev-cw opened this issue Aug 30, 2023 · 3 comments · Fixed by #72

Comments

@avsdev-cw
Copy link

avsdev-cw commented Aug 30, 2023

It looks like the library is registering before Shiny loads (we have some quite large applications).

Traceback says the culprit is this listener:

window.addEventListener('focus', function() {
  getCookies();
});

I've tried both devel and released (0.2.2) versions

@jonthegeek
Copy link
Contributor

Thanks for the report! I'll look into it as soon as I can. We have some other racetime issues with Shiny, so I suspect a general hardening in that area will make a lot of things simpler.

@avsdev-cw
Copy link
Author

avsdev-cw commented Aug 30, 2023

I've also noticed that this commit: Temporarily deal with over-zealous http-only check. seems to prevent the cookies from initially loading (at least before the full "input" system is loaded).

Probably Because of the removal of line 138.

5559235#diff-9e95b340633529fb09e594e8e485b849dac8a3aa0d81017be4c7556d34bfb05bL138

@jonthegeek
Copy link
Contributor

I think this will fix your issues. Please let me know if it doesn't! I'm submitting this to CRAN in any case to fix a breaking issue in the tests, but hopefully it's a real fix!

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

Successfully merging a pull request may close this issue.

2 participants