Skip to content

Commit cde5aa2

Browse files
committed
Merge branch 'main' into 2.0.0-beta
2 parents eec94de + 675d086 commit cde5aa2

File tree

3 files changed

+8
-62
lines changed

3 files changed

+8
-62
lines changed

.zed/settings.json

Lines changed: 0 additions & 60 deletions
This file was deleted.

eslint.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default tseslint.config(
4949
],
5050
language: "markdown/gfm",
5151
rules: {
52-
"markdown/no-html": "warn",
52+
"markdown/no-html": "off",
5353
"markdown/no-missing-label-refs": "off",
5454
},
5555
},

packages/plugins/eslint-plugin-react-hooks-extra/src/rules/no-direct-set-state-in-use-effect.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const fullName = firstName + " " + lastName;
5454

5555
The rule **does not flag** indirect calls, such as:
5656

57-
- Inside event handlers.
57+
- Inside `event` handlers.
5858
- Inside `async` functions.
5959
- Inside `setTimeout`, `setInterval`, `Promise.then`, etc.
6060

@@ -147,6 +147,12 @@ export default function RemoteContent() {
147147
}
148148
```
149149

150+
<Callout title="TIP">
151+
152+
If you need to fetch remote data within the component, consider using libraries like [TanStack Query](https://tanstack.com/query/v3/) or [SWR](https://swr.vercel.app/). They handle caching, re-fetching, and state management for you, making your code cleaner and more efficient.
153+
154+
</Callout>
155+
150156
The following examples are derived from the [React documentation](https://react.dev/learn/you-might-not-need-an-effect):
151157

152158
### Failing

0 commit comments

Comments
 (0)