Commit f393057
fix: remove useId() and ClientOnly from DownloadButton
useId() inside ClientOnly causes server/client ID counter desync,
leading to hydration mismatches. Replace with a static ID since
there's only one download menu per page. Remove ClientOnly wrapper
as the component doesn't do any fetching until user interaction.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 60aac4a commit f393057
File tree
2 files changed
+8
-10
lines changed- app
- components/Package
- pages/package/[[org]]
2 files changed
+8
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
785 | 783 | | |
786 | 784 | | |
787 | 785 | | |
| |||
0 commit comments