Skip to content

Commit

Permalink
Try logging in the clean up function earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansick committed Apr 5, 2024
1 parent 6ccde48 commit a43d043
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ export default function TimesSquareGitHubPagePanel({

return () => {
// Clean up: close the event source connection
console.log(`❌ CLOSING CONNECTION TO ${fullHtmlEventsUrl}`);
abortControllerRef.current.abort();
console.log(`Aborted connection to ${fullHtmlEventsUrl}`);
};
}, [fullHtmlEventsUrl]);

Expand All @@ -91,9 +91,10 @@ export default function TimesSquareGitHubPagePanel({
<Head>
<title>{`${title} | ${publicRuntimeConfig.siteName}`}</title>
</Head>
{htmlEvent && <p>Execution Status: {htmlEvent.execution_status}</p>}
<div>
<PageTitle>{title}</PageTitle>
{htmlEvent && <p>Execution Status: {htmlEvent.execution_status}</p>}
{htmlEvent && <p>{htmlEvent.htmlUrl}</p>}
{description && (
<div dangerouslySetInnerHTML={{ __html: description.html }}></div>
)}
Expand Down

0 comments on commit a43d043

Please sign in to comment.