Skip to content

Conversation

kateharwood
Copy link
Contributor

@kateharwood kateharwood commented Mar 25, 2021

Hopefully with the data retrieval happening in the server function, the app will pull down the data each time it is reloaded, and not only on a full app restart.

@kateharwood kateharwood requested a review from tildechris March 25, 2021 20:36
@kateharwood kateharwood marked this pull request as ready for review March 25, 2021 20:36
@kateharwood kateharwood changed the title Reload app Update where in the app data is being pulled from AWS Mar 25, 2021
if(!is.null(s3bucket)) {
tryCatch(
{
s3readRDS(object = filename, bucket = s3bucket)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this may read this for every new session. The score cards are pretty small, but it could introduce a load time problem eventually.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The methods of reloading the app from within the app that I've seen do not actually restart the app, so I think this code has to be within the server to get re-run, unless there is another way of doing it that I haven't seen yet.

Copy link
Contributor

@tildechris tildechris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@kateharwood kateharwood merged commit d0d5cff into dev Mar 26, 2021
@kateharwood kateharwood deleted the reload-app branch March 30, 2021 20:55
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

Successfully merging this pull request may close these issues.

2 participants