Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return async function* trace(input) {
const cur = await R.current;
for await (const i of input) {
console.group(`${prefix}-${i.type}`);
console.log(
i.value && i.value.$$typeof === Symbol.for("react.element")
? prettyFormat(i, { plugins: [ReactElement] })
: i,
R.write(cur)
);
console.groupEnd();
yield i;
}
};
}