MCPcopy
hub / github.com/skatejs/skatejs / afterMutations

Function afterMutations

packages/skatejs/test/lib/after-mutations.js:1–11  ·  view source on GitHub ↗
(...fns)

Source from the content-addressed store, hash-verified

1export default function afterMutations(...fns) {
2 setTimeout(function() {
3 const fn = fns.shift();
4 if (typeof fn === 'function') {
5 fn();
6 }
7 if (fns.length) {
8 afterMutations.apply(null, fns);
9 }
10 }, 1);
11}

Callers 4

testTypeValuesFunction · 0.85
props.spec.jsFile · 0.85
properties.spec.jsFile · 0.85

Calls

no outgoing calls

Tested by 1

testTypeValuesFunction · 0.68