-
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
autoreload doesn't load with Shiny modules #2711
Comments
Maybe, a small hint how one can further specify the issue. As far as i see, the issue is rather wth Note, if you put the modules from my_module.R to app.R and changes the modules in there, you get the desired updates at run time. However, if you put a random, (non-moduled) ui component in "my_module.r"source it and change it at run time, it wont get updated. It gets even more interesting.
tldr; Long text without a clear solution. But it might be of help for further debugging i hope. |
@TiMaG , did you ever resolve this? In my shiny app, I am source()-ing a utils.r file from my app.r script. I see the UI refresh in the browser upon saving utils.r, but the changes are not loaded in until app.r is modified and saved. I believe this is the exact issue you describe here. |
@erikriverson sry, no. |
I had the same issue, but as as a workaround I included my
|
I'm also encountering this issue. I've set some debug points to ensure that |
Thanks @itkonen , it is a workaround, but a incredibly useful one. |
I've got this for now, in the main server function: server_env = environment()
lapply(
list.files(path = "R", pattern = ".*\\.R$", full.names = TRUE),
source,
local = server_env
)
The catch is that this does not lead to the |
It would be great to have this work out-of-the-box here, as it also would then work within a |
Bumping this, really becomes an issue when you are building larger apps |
Same issue. It looks like there is no resolution coming |
Any progress? |
My R/ dir have three files
autoreload works without module
Editing the "changeLabel" in
selectInput()
does the change the label.autoreload doesn't work with module
Editing the "changeLabel" in
selectInput()
does refresh the Shiny application but "changeLabel" does not change at all.The text was updated successfully, but these errors were encountered: