You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I upgraded to shiny 1.8.1.1 then my app started to throw different errors. After some hours of debugging, it turned out the problem is with this version of shiny package. When I downgraded to 1.8.0, everything works as before, as expected.
I created a small reprex based on my application. I use nested future_promises (because I have a progress bar and this way I can set it properly which I could not, using one future_promise only). It seems as if the reactive environment disappears in between the resolved promises or I'm not sure how to say it. There are multiple issues but all are related to losing reactivity. I included two issues which you can check.
First issue is related to shinyjs:
Warning: Error in : shinyjs: could not find the Shiny session object. This usually happens when a shinyjs function is called from a context that wasn't set up by a Shiny session.
You can check it using this line:
shinyjs::hide("compute_rank")
After the first future_promise is resolved, it works fine. After the second and third, it throws the error above.
Second issue is related to a reactive function:
Warning: Error in .getReactiveEnvironment()$currentContext: Operation not allowed without an active reactive context.
• You tried to do something that can only be done from inside a reactive consumer.
You can check it using this line:
session$userData$result <- calculate_result()
After the first future_promise is resolved, it works fine. After the second and third, it throws the error above.
Thanks in advance for your help.
The text was updated successfully, but these errors were encountered:
System details
Output of
sessionInfo()
:Example application or steps to reproduce the problem
Describe the problem in detail
I upgraded to shiny 1.8.1.1 then my app started to throw different errors. After some hours of debugging, it turned out the problem is with this version of shiny package. When I downgraded to 1.8.0, everything works as before, as expected.
I created a small reprex based on my application. I use nested future_promises (because I have a progress bar and this way I can set it properly which I could not, using one future_promise only). It seems as if the reactive environment disappears in between the resolved promises or I'm not sure how to say it. There are multiple issues but all are related to losing reactivity. I included two issues which you can check.
First issue is related to shinyjs:
You can check it using this line:
After the first future_promise is resolved, it works fine. After the second and third, it throws the error above.
Second issue is related to a reactive function:
You can check it using this line:
After the first future_promise is resolved, it works fine. After the second and third, it throws the error above.
Thanks in advance for your help.
The text was updated successfully, but these errors were encountered: