MCPcopy Create free account
hub / github.com/cyclejs/cyclejs / wrapAppResultWithBoilerplate

Function wrapAppResultWithBoilerplate

examples/isomorphic/server.js:28–38  ·  view source on GitHub ↗
(appFn, context$, bundle$)

Source from the content-addressed store, hash-verified

26}
27
28function 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
40const clientBundle$ = (() => {
41 const bundle$ = xs.createWithMemory();

Callers 1

server.jsFile · 0.85

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected