-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Make auto-reload work with default entrypoint
- Loading branch information
Showing
2 changed files
with
12 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# This function is defined in the `inst` directory, as it must be sourced with `keep.source = TRUE` | ||
# for reloading to work: https://github.com/Appsilon/rhino/issues/157 | ||
function(shiny_module) { | ||
function(app_env) { | ||
list( | ||
# Wrap the UI in a function to support Shiny bookmarking. | ||
ui = function(request) shiny_module$ui("app"), | ||
ui = function(request) app_env$main$ui("app"), | ||
# The curly braces below are essential: https://github.com/Appsilon/rhino/issues/157 | ||
server = function(input, output) { | ||
shiny_module$server("app") | ||
app_env$main$server("app") | ||
} | ||
) | ||
} |