Skip to content

Commit df4dfe9

Browse files
howwohmmclaude
andcommitted
fix: replace read-only useClipboard ref with writable shallowRef
copiedReadme from useClipboard's copied is a read-only computed — direct assignment fails type checking. Since we now bypass useClipboard's copy() entirely, replace with a writable shallowRef. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2e946dc commit df4dfe9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app/pages/package/[[org]]/[name].vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,7 @@ const {
9696
)
9797
9898
//copy README file as Markdown
99-
const { copied: copiedReadme, copy: copyReadme } = useClipboard({
100-
source: () => '',
101-
copiedDuring: 2000,
102-
})
99+
const copiedReadme = shallowRef(false)
103100
104101
function prefetchReadmeMarkdown() {
105102
if (readmeMarkdownStatus.value === 'idle') {

0 commit comments

Comments
 (0)