Appsilon / shiny.gosling

R Shiny wrapper for Gosling.js - Grammar-based Toolkit for Scalable and Interactive Genomics Data Visualization
https://appsilon.github.io/shiny.gosling/
18 stars 1 forks source link

Sometimes the gosling plot gets rendered without the `use_gosling()` #91

Open vedhav opened 1 year ago

vedhav commented 1 year ago

use_gosling seems to do something else than what the document suggests "Add this function at the beginning of ui. This is needed for gosling to work in shiny plots." If this functionality is true the plot should not be rendered when you do not use the use_gosling() in the UI. But it works after some reactivity triggers the gosling plot. So it seems like this function is making sure that the gosling plot is rendered during init or something similar because the gosling plot does not render when the use_gosling() is removed.

For example, if you remove the use_gosling() from the multiTrackApp example you can see that the graphs are not rendered but after changing some input the graphs start to get rendered.

federiva commented 1 year ago

@vedhav Can you add a reprex for this?

vedhav commented 1 year ago

Thanks, Fede. Added an example in the description. My question is if it works without the use of use_gosling(), Could we make a way for it to work during the init without the need for an additional function? It would be the most ideal way for the users to use shiny.gosling.