Skip to content

Commit c3c427c

Browse files
Use <a> tag for "Import Your Repository" link, to completely reset state (force SSR)
1 parent a46e6e8 commit c3c427c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • examples/nextjs-import-airbyte-github-export-seafowl/components

examples/nextjs-import-airbyte-github-export-seafowl/components/Sidebar.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,10 @@ export const Sidebar = () => {
8383
return (
8484
<aside className={styles.sidebar}>
8585
<div className={styles.importButtonContainer}>
86-
<Link href="/" className={styles.importButton}>
86+
{/* NOTE: Use <a> (not <Link />) to force SSR to clear state if an import was already in progress */}
87+
<a href="/" className={styles.importButton}>
8788
Import Your Repository
88-
</Link>
89+
</a>
8990
</div>
9091
<SqlProvider dataContext={splitgraphDataContext}>
9192
<RepositoriesList />

0 commit comments

Comments
 (0)