Skip to content
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

Deprecate golem::add_ui_server_files() #445

Open
ColinFay opened this issue May 5, 2020 · 4 comments
Open

Deprecate golem::add_ui_server_files() #445

ColinFay opened this issue May 5, 2020 · 4 comments

Comments

@ColinFay
Copy link
Member

ColinFay commented May 5, 2020

I don't think we should keep golem::add_ui_server_files() inside {golem}.

This issue is a proposal for softly deprecating it in the next release.

Please comment below if you're using this function and are against deprecating this function.

@ColinFay
Copy link
Member Author

Might be needed for #693

@EwokOzwok
Copy link

I am using this function quite a bit!

@ColinFay
Copy link
Member Author

ColinFay commented Jul 3, 2023

Hey @EwokOzwok,

would you be ok with adding some details on when / how you're using it?

thanks

@EwokOzwok
Copy link

@ColinFay I'm using it to modify golem packages for PWA compatibility with shinyMobile:

Open ./R/app_ui.R.
Scroll down to the golem_add_external_resources function.
Comment out the code as shown on the left (to avoid conflicts with {shinyMobile} PWA assets).
Call golem::add_ui_server_files().

Source: Slide: Road to PWA : Modify {golem} package
https://rinterface.github.io/shinyMobile/articles/shinyMobile.html

Although the deeper I go, the more trouble I'm having getting shinyMobile's PWA to work in deployed docker containers. But if it's necessary to call this function to modify golem to be PWA compatible with shinyMobile I'd keep using it!

p.s. I'm not an expert if that wasn't abundantly clear :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants