Commit 16e9dd7
committed
fix: wrap DownloadButton in ClientOnly to prevent hydration mismatch
useId() generates different IDs on server vs client, and the component
uses browser-only APIs (useMediaQuery, document, Teleport). Wrapping
in ClientOnly avoids the hydration mismatch entirely.1 parent e4b803a commit 16e9dd7
1 file changed
+9
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
783 | 785 | | |
784 | 786 | | |
785 | 787 | | |
| |||
0 commit comments