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
This PR proposes several modifications to address issues noted in #146 and #147:
a new private$in_viewer field tracks whether the app should be reloaded within RStudio's viewer pane
app_url now uses self$server$host and self$server$port
self$config$hot_reload incorrectly used hot_reload_watch_interval, this has been corrected to hot_reload_interval
permit_reload is always TRUE until one reload event has occurred; on subsequent cycles, reloads are permitted if the current (wall) time is at least hot_reload_watch_interval seconds greater than the time stored in private$last_reload
The reason will be displayed to describe this comment to others. Learn more.
This will work. But a common way to do it with only one variable is to start with private$last_reload = 0 or some known distant past time (0 often works for that purpose because it typically means the unix epoch = 1/1/1970)
* Provide support for no_update in Dash for R (#111)
* Use dev_tools_prune_errors instead of pruned_errors (#113)
* Better handling for user-defined error conditions in debug mode (#116)
* Provide support for multiple outputs (#119)
* Provide support for hot reloading in Dash for R (#127)
* Implement support for clientside callbacks in Dash for R (#130)
* Add line number context to stack traces when srcrefs are available (#133)
* Update dash-renderer to 1.2.2 and fix dev tools UI display of stack traces (#137)
* Support for meta tags in Dash for R (#142)
* Fixes for hot reloading interval handling and refreshing apps within viewer pane (#148)
* Support for asynchronous loading/compression in Dash for R (#157)
* Support returning asset URLs via public method within Dash class (#160)
* Minor fix for get_asset_url + docs, add url_base_pathname (#161)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR proposes several modifications to address issues noted in #146 and #147:
private$in_viewerfield tracks whether the app should be reloaded within RStudio's viewer paneapp_urlnow usesself$server$hostandself$server$portself$config$hot_reloadincorrectly usedhot_reload_watch_interval, this has been corrected tohot_reload_intervalpermit_reloadis alwaysTRUEuntil one reload event has occurred; on subsequent cycles, reloads are permitted if the current (wall) time is at leasthot_reload_watch_intervalseconds greater than the time stored inprivate$last_reloadResolves#146, fixes#147.