A tool for people curious about the React Server Components protocol rscexplorer.dev/
rsc react

don't steal scroll as embed

+1 -1
+1 -1
src/client/ui/FlightLog.tsx
··· 24 24 cursor >= chunkStart && cursor < chunkStart + lines.length ? cursor - chunkStart : -1; 25 25 26 26 useEffect(() => { 27 - if (activeRef.current) { 27 + if (activeRef.current && document.hasFocus()) { 28 28 activeRef.current.scrollIntoView({ block: "nearest", behavior: "smooth" }); 29 29 } 30 30 }, [nextLineIndex]);