Skip to content

Commit 9b5428d

Browse files
committed
Resolve conflict
1 parent b40803c commit 9b5428d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/content/reference/react/useEffect.md

-4
Original file line numberDiff line numberDiff line change
@@ -1089,11 +1089,7 @@ function ChatRoom({ roomId }) {
10891089
}
10901090
```
10911091
1092-
<<<<<<< HEAD
10931092
**依存配列から何かを削除するには、[リンタに対し、それが依存値である*理由がない*ことを「証明」する必要があります](/learn/removing-effect-dependencies#removing-unnecessary-dependencies)**。例えば、`serverUrl` をコンポーネントの外に移動すれば、それがリアクティブな値ではなく、再レンダー時に変更されないものであることを証明できます。
1094-
=======
1095-
**To remove a dependency, you need to ["prove" to the linter that it *doesn't need* to be a dependency.](/learn/removing-effect-dependencies#removing-unnecessary-dependencies)** For example, you can move `serverUrl` out of your component to prove that it's not reactive and won't change on re-renders:
1096-
>>>>>>> 3364c93feb358a7d1ac2e8d8b0468c3e32214062
10971093
10981094
```js {1,8}
10991095
const serverUrl = 'https://localhost:1234'; // Not a reactive value anymore

0 commit comments

Comments
 (0)