Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7f6e4e4

Browse files
committed
fix: update comments
1 parent37e0ce6 commit7f6e4e4

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

‎site/src/hooks/useClipboard.test.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ describe.each(secureContextValues)("useClipboard - secure: %j", (isSecure) => {
275275
expect(result.current.error).toBeUndefined();
276276
});
277277

278-
// Thischeck is really important to ensure that it's easy to plop this
278+
// Thistest case is really important to ensure that it's easy to plop this
279279
// inside of useEffect calls without having to think about dependencies too
280280
// much
281281
it("Ensures that the copyToClipboard function always maintains a stable reference across all re-renders",async()=>{

‎site/src/hooks/useClipboard.ts‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/**
2-
* Modified version of the useClipboard hook from Coder core.
3-
*@see {@link https://github.com/coder/coder/blob/main/site/src/hooks/useClipboard.ts}
4-
*/
5-
61
import{displayError}from"components/GlobalSnackbar/utils";
72
import{useCallback,useEffect,useRef,useState}from"react";
83
import{useEffectEvent}from"./hookPolyfills";

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp