-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
After upgrading to Shiny 1.8.1 from 1.8.0, no data is visible on my shiny APP #4016
Comments
Note: As soon as I uninstalled 1.8.1 and installed 1.8.0 from : https://cran.r-project.org/src/contrib/Archive/shiny/shiny_1.8.0.tar.gz Things worked JUST FINE |
Yikes! Certainly not intentionally! When the problem occurs, is there any error in your browser’s JavaScript console? |
Few possible points that may help you debug:
|
Similarly a few tabsetpanels also may have the same id. I cannot think of anything else that could have broken this so badly. Note: Earlier same behaviour was observed if there were multiple datatables or UI elements with same id. Is it possible that same strictness is now being enforced on tabsetpanels and navbarpages? Just trying to think what could have happened :-) |
@jcheng5 please see if above comments help you debug |
Yes we’ve gotten stricter with duplicate IDs, but I would’ve expected messages in the browser’s JavaScript console in that case. @gadenbuie @cpsievert any ideas? |
As of now I have reverted to 1.8.0, So wont be able to replicate. Since things work perfectly fine on 1.8.0 But any easy way for me to spot the root cause and fix? I can then try those on QA box. Thanks! |
OK, one thing is: I might have closed browser’s JavaScript console too soon. And was using large extension monitors. So there is a non zero chance that I might have missed this. Having said that, this may be breaking stuff for many shiny users. Since many would've copied code for tabsetpanels like me. But I guess there is nothing much you can do? (or is there a global flag to switch off duplicate checks added in 1.8.1? Just for testing?) |
@gunawebs Could you show us a small snippet of code to give us a sense of how you're using |
I had the same problem on my modulized app. It turns the "sidebar" in two of my modules had the same id. Wrapping them with ns(), as I should have done, fixed the problem. Thanks to the comment from Joe! Wen |
hello @cpsievert @jcheng5 @gadenbuie I repeated the test on my QA box: Here is my error on the screen, when in dev mode Here is my error on javascript console BUT There is no ID called: sidebarItemExpanded anywhere in my code So I am badly stuck Also attached a sippet of code. this may or may not be the error. |
If you have two (Team, seems like this is a scenario we hadn't thought of--apps that are working "correctly" in Shiny <=1.8.0 despite having duplicate IDs, because the app doesn't actually use them.) |
Thanks @jcheng5 So looks like 2 gotchas:
Correct? Thanks! |
@gunawebs, what other page functions are you using in your UI, and how many times each? Here we can see navbarPage x 1 and dashboardPage x 1, but are there others? I ask because, while we never expected nor tested for putting dashboardPage inside navbarPage, I wouldn't expect that to give you the specific error you got; I'd expect that if there were two or more dashboardPage calls in your UI, anywhere. |
Great question @jcheng5 As you can see it said: 3 errors. And there were exactly 3 combination of: navbarPage x dashboardPage in my code. I commented all three of them. And things worked fine after that. |
…mode (#4019) * Close #4016. Warn instead of error when duplicate binding IDs are found in non-devmode * Get rid of unreachable ShinyClientError() * `yarn build` (GitHub Actions) * Update srcts/src/shiny/bind.ts Co-authored-by: Garrick Aden-Buie <garrick@adenbuie.com> * `yarn build` (GitHub Actions) * Move logic to where error gets thrown not constructed * `yarn build` (GitHub Actions) * Update NEWS --------- Co-authored-by: cpsievert <cpsievert@users.noreply.github.com> Co-authored-by: Garrick Aden-Buie <garrick@adenbuie.com>
Thanks for the reports everyone. We're going to do a patch release early next week so that the error only gets thrown when opt-ing into |
@cpsievert thanks a ton. quick question, by any chance would this take care of the dashboard issue too? |
I believe so, yes. If you like to try it before we release:
Putting a page within any other page is not generally recommended. Are you needing that usage because |
Thanks @cpsievert will try right away |
@cpsievert Thanks so so much. I have tested with the pre release version. And things work fine. a. Could you please let me know the expected date of the patch to be released on CRAN Thanks! |
New release is now up on CRAN |
After upgrading to Shiny 1.8.1 from 1.8.0, no data is visible on my shiny APP
runApp() does not throw any error, but NO data is shown on the screen
Was some backward compatibility broken in this release?
The text was updated successfully, but these errors were encountered: