Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const effect =
resolved != null && id != null && manager != null ? (
manager.markAsUsed(id())}
/>
) : null;
const content = loading ? renderLoading() : render(resolved);
const intersectionObserver =
loading && defer === DeferTiming.InViewport ? (
) : null;
return (
<>
{effect}
{content}
{intersectionObserver}
);
}