-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat: Add session$destroy() to remove all module reactivity
#4372
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
Merged
Merged
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
5213c4b
docs: add session$destroy() design spec
schloerke c73e0bd
chore: add docs/ to .gitignore and .Rbuildignore
schloerke 7cd36fc
feat: add destroyedReactiveError condition constructor
schloerke f295282
feat: add destroy() method and guards to ReactiveVal
schloerke ca4d1f9
feat: add destroy() method and guards to Observable
schloerke 1dc8b36
feat: Observer auto-registers weak destroy callback with domain
schloerke faa8a65
feat: ReactiveVal and Observable auto-register weak destroy callbacks
schloerke f648d29
test: verify weakref GC behavior for destroy callbacks
schloerke 2d7268a
feat: add _destroy(nsPrefix) method to ReactiveValues
schloerke f4cde30
feat: add destroy callback infrastructure to ShinySession and MockShi…
schloerke 92391a4
feat: add onDestroy/destroy to session proxies via makeScope
schloerke 5b24569
test: add integration tests for full module destroy flow
schloerke 9cce3b9
docs: add roxygen for onDestroy/destroy, @seealso on removeUI
schloerke 584c7ba
docs: add NEWS entry for session$destroy()
schloerke 9ca13cc
`devtools::document()` (GitHub Actions)
schloerke 1ab5519
docs: update NEWS PR number placeholder to #4372
schloerke e1a8e09
docs: replace broken ShinySession @seealso with usage snippet, add se…
schloerke b2c9c38
chore: add .context to .gitignore and .Rbuildignore
schloerke 4ac85fd
fix: address PR review threads for session destroy
schloerke 5b6c187
docs: add composability section to session, moduleServer, and removeU…
schloerke 7603141
docs: polish NEWS entry to match tidyverse style and updated docs
schloerke 4a13407
fix: improve destroy() error messages with actionable guidance
schloerke ba89579
refactor: use `..root` sentinel instead of `__root__` for destroy cal…
schloerke 7e14d91
fix: deregister onDestroy handles in destroy(), fix doc examples and …
schloerke 7aaf50e
fix: cancel invalidateLater() timers on module destroy
schloerke c7c31de
fix: clean up bookmark-exclude registration on module destroy
schloerke c14acc9
fix: use monotonic counter for bookmark-exclude IDs to prevent collision
schloerke 09b2a7e
test: add bookmark-exclude support to MockShinySession for testing
schloerke 0252fd4
`devtools::document()` (GitHub Actions)
schloerke ba9f721
fix: add onDestroy/destroy support to createMockDomain
schloerke 0d44836
fix: reject reserved namespace '..root' in makeScope()
schloerke 4361f2c
docs: fix moduleServer destroy example to show realistic pattern
schloerke 936c15c
fix: observer onDestroy registration respects autoDestroy flag
schloerke b397602
fix: invalidateLater onEnded callback deregisters onDestroy handle
schloerke c000b88
feat: add destroy() and domain auto-registration to ReactiveValues
schloerke b00940a
docs: address PR review threads for removeUI example, onDestroy docs,…
schloerke c5c91a9
Merge branch 'main' into schloerke/py-shiny-2209-port
schloerke 1387076
Merge remote-tracking branch 'origin/main' into schloerke/py-shiny-22…
schloerke f1c6880
`devtools::document()` (GitHub Actions)
schloerke 44f24f4
Merge remote-tracking branch 'origin/main' into schloerke/py-shiny-22…
schloerke 88b7d9a
Merge branch 'schloerke/py-shiny-2209-port' of https://github.com/rst…
schloerke 4d34035
feat: session$destroy(id) tears down a child module scope by id
schloerke 238d84f
docs: address plannotator review for session$destroy(id)
schloerke 33c1088
docs: use backticks instead of \code{} in R6 destroy method docstrings
schloerke 1cf4d10
docs: use backticks instead of \code{} in remaining R6 method docstrings
schloerke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,3 +35,5 @@ | |
| ^README-npm\.md$ | ||
| ^CRAN-SUBMISSION$ | ||
| ^LICENSE\.md$ | ||
| ^docs$ | ||
| ^\.context$ | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,3 +22,5 @@ madge.svg | |
| # GHA remotes installation | ||
| .github/r-depends.rds | ||
| .claude/settings.local.json | ||
| /docs/ | ||
| .context | ||
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.