INNER CODE UNIT · JavaScript
next
ScanNet/ScanNet · WebUI/src/hooks/index.js:43
const next = condition => {
if (result && condition) {
rewriteQueries(result);
}
return hook;
};
const check = callback(hook);
return check && typeof check.then === 'function'
? check.then(next) : next(check);
};
};