Open cpsievert opened 3 years ago
@wch with 71ac6f9, .postRenderHook
is now scheduling itself correctly now, but unfortunately I don’t see a way for .postRenderHook
to modify its input with a single pass through the tree -- do you think that'll be an issue and/or see a way to do that?
We'll need some good unit tests to make sure the pre and post hooks are executed properly.
(I'm not 100% sure this is an avenue we want to pursue, but it does seem like a decent way to solve
shiny::bootstrapLib()'
s static rendering issues -- see https://github.com/rstudio/shiny/pull/3402 for motivation)This main point of this PR is to add a
.postRenderHook
-- the primary motivation for which is to provide a way to clean-up side-effects that may happen in.renderHook
. It also adds the ability to attach hooks totagList()
(this will allow us to fully deprecatetagFunction()
since we can now stop using it inshiny::bootstrapLib()
). Here's an example: