Function
wrapAppResultWithBoilerplate
(appFn, context$, bundle$)
Source from the content-addressed store, hash-verified
| 26 | } |
| 27 | |
| 28 | function wrapAppResultWithBoilerplate(appFn, context$, bundle$) { |
| 29 | return function wrappedAppFn(sources) { |
| 30 | const vdom$ = appFn(sources).DOM; |
| 31 | const wrappedVDOM$ = xs.combine(vdom$, context$, bundle$.take(1)) |
| 32 | .map(wrapVTreeWithHTMLBoilerplate) |
| 33 | .last(); |
| 34 | return { |
| 35 | DOM: wrappedVDOM$ |
| 36 | }; |
| 37 | }; |
| 38 | } |
| 39 | |
| 40 | const clientBundle$ = (() => { |
| 41 | const bundle$ = xs.createWithMemory(); |
Tested by
no test coverage detected