-
Notifications
You must be signed in to change notification settings - Fork 258
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
Mount docs as first mount #882
base: main
Are you sure you want to change the base?
Conversation
Sorry, I don't understand these changes--can you walk me through them tomorrow? |
Will do! |
I suggest adding a |
… is like `append(after=)` for mount order
|
@@ -299,7 +307,15 @@ Plumber <- R6Class( | |||
path <- paste0(path, "/") | |||
} | |||
|
|||
private$mnts[[path]] <- router | |||
# Remove prior mount if it exists | |||
self$unmount(path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you want to do this unmount...? With #883, you'll be able to mount two subrouters to one path and have one fall through to the other.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll be sure to address that in the PR. There's a lot of decisions to be made in #883
For now, I'd like to keep existing behavior where it was overwritten.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Bullet point added in description of Mounted router fall back to parent router when route is not found #883
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And if you still do want to unmount, I think you would then need to factor in how it affects the after
index if it's a non-NULL, non-zero value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmmm. Let's keep this in draft to see if we're even going to merge #883
Fixes #881
Other changes:
exit
hooks are run.PR task list:
devtools::document()
cc @aronatkins