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
In Shiny you can use e.g. singleton(tags$head(tags$script(...))) to add some code to document head. This is sometimes used by libraries (e.g. shinyAce, shiny.router) to add dependencies instead of htmlDependency(). However singletons and head tags currently don't work properly in React context.
Note: It is often possible to work around this issue by including the dependencies / mock component manually outside of React context. For example, you can put div(style = "display: none", shinyAce::aceEditor(NULL)) anywhere outside of React to load the dependencies and make aceEditor() work also within React.
The text was updated successfully, but these errors were encountered:
In Shiny you can use e.g.
singleton(tags$head(tags$script(...)))
to add some code to document head. This is sometimes used by libraries (e.g. shinyAce, shiny.router) to add dependencies instead ofhtmlDependency()
. However singletons and head tags currently don't work properly in React context.Note: It is often possible to work around this issue by including the dependencies / mock component manually outside of React context. For example, you can put
div(style = "display: none", shinyAce::aceEditor(NULL))
anywhere outside of React to load the dependencies and makeaceEditor()
work also within React.The text was updated successfully, but these errors were encountered: