Description
useClipboard or useCopyToClipboard hooks return [string, (text: string) => Promise<void>] where 0 is the content from the clipboard while 1 is the function to write into it. The problem is, Chrome asks for permission which might look suspicious for some users, not good in terms of UX and it is reasonable to only write into clipboard.
Reproduction
Steps to reproduce the behavior:
- Install
@reactuses/core
- Use hook
useClipboard or useCopyToClipboard
- Chrome asks for permission.
Expected Behavior
Chrome should not ask for permission. There must be a hook to only write into the clipboard.
Environment
- OS: Linux
- Browser: 148.0.7778.178 (Official Build, ungoogled-chromium) (64-bit)
- React version: 19.2.6
- @reactuses/core version: 6.3.2
Additional Context
None.
Description
useClipboardoruseCopyToClipboardhooks return[string, (text: string) => Promise<void>]where 0 is the content from the clipboard while 1 is the function to write into it. The problem is, Chrome asks for permission which might look suspicious for some users, not good in terms of UX and it is reasonable to only write into clipboard.Reproduction
Steps to reproduce the behavior:
@reactuses/coreuseClipboardoruseCopyToClipboardExpected Behavior
Chrome should not ask for permission. There must be a hook to only write into the clipboard.
Environment
Additional Context
None.