Discussion about the .dom, the tiny (≤ 512 byte) template engine that uses virtual DOM and some of react principles
for (;(vnode.$ || renderChildren).call;) // (This expands to : vnode.$ && vnode.$.call &&)
// If the vnode is a functional component, expand
(k => vnode = vnode.$( // it and replace the current vnode variable.
vnode.a, // 1. The component properties
(_state[k] = _state[k] || {}) && _state[k], // 2. The stateful component state
newState => // 3. The setState function
ObjectAssign( // First we update the state record, that also updates
_state[k], // the contents of the DOM element, since the reference
newState // is perserved.
) &&
render( // We then trigger the same render cycle that will
vnodes, // update the DOM
dom
),
_hooks // 4. The lifecycle method hooks
))(index++);
for (;(vnode.$ || renderChildren).call;) // (This expands to : vnode.$ && vnode.$.call &&)
// If the vnode is a functional component, expand
(k => vnode = vnode.$( // it and replace the current vnode variable.
vnode.a, // 1. The component properties
_state[k] || {}, // 2. The stateful component state
newState =>
_state.fill({}, 0, k) && // 3. The setState function
ObjectAssign( // First we update the state record, that also updates
(_state[k] = _state[k] || {}) && _state[k], // the contents of the DOM element, since the reference
newState // is perserved.
) &&
render( // We then trigger the same render cycle that will
vnodes, // update the DOM
dom
),
_hooks // 4. The lifecycle method hooks
))(j++);
Feature Chrome Firefox (Gecko) Edge Internet Explorer Opera Safari
Basic support 45 [1] 31 (31) (Yes) No support No support 7.1
.fill
?
{}
ic/smarter-state-perservation
It's getting this error message: No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received
The build has been terminated