Commit ce39662
Patch htmlwidgets 1.6.4 renderValue to await dep scripts
In htmlwidgets/www/htmlwidgets.js shinyBinding.renderValue calls the
synchronous Shiny.renderDependencies(data.deps) and then immediately
invokes bindingDef.renderValue — the plugin <script> tag is appended to
<head> but not awaited. Locally that's a <1ms race; behind the Seqera
Studios iframe + connect-client relay it consistently loses, so e.g.
$().DataTable is undefined when the DT binding runs, producing
'$table.DataTable is not a function' on any tab with a DataTables
widget.
Patch the file at image build time to make renderValue async and await
renderDependenciesAsync when available, falling back to the sync path.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 74dc7cd commit ce39662
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
44 | 60 | | |
45 | 61 | | |
46 | 62 | | |
| |||
0 commit comments