Skip to content

Commit 01a06da

Browse files
authored
chore: typo (#3161)
1 parent 98567af commit 01a06da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/useEventListener/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const cleanup = useEventListener(document, 'keydown', (e) => {
4646
cleanup() // This will unregister the listener.
4747
```
4848

49-
Note if you components also run in SSR (Server Side Rendering), you might get errors (like `document is not defined`) because DOM APIs like `document` and `window` are not available in Node.js. To avoid that you can put the logic inside `onMounted` hook.
49+
Note if your components also run in SSR (Server Side Rendering), you might get errors (like `document is not defined`) because DOM APIs like `document` and `window` are not available in Node.js. To avoid that you can put the logic inside `onMounted` hook.
5050

5151
```ts
5252
// onMounted will only be called in the client side, so it guarantees the DOM APIs are available.

0 commit comments

Comments
 (0)