You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/stale.yml
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,8 @@ jobs:
14
14
with:
15
15
only-labels: 'please add a complete reproduction'
16
16
close-issue-message: 'This issue has been automatically closed after 30 days of inactivity with no reproduction. If you are running into a similar issue, please open a new issue with a reproduction. Thank you.'
Copy file name to clipboardExpand all lines: docs/advanced-features/react-18.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,8 @@ Ensure you have the `rc` npm tag of React installed:
12
12
npm install next@latest react@rc react-dom@rc
13
13
```
14
14
15
+
That's all! You can now start using React 18's new APIs like `startTransition` and `Suspense` in Next.js.
16
+
15
17
### Enable SSR Streaming (Alpha)
16
18
17
19
Concurrent features in React 18 include built-in support for server-side Suspense and SSR streaming support, allowing you to server-render pages using HTTP streaming.
Copy file name to clipboardExpand all lines: docs/api-reference/next/link.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -204,7 +204,7 @@ The default behavior of the `Link` component is to `push` a new URL into the `hi
204
204
The default behavior of `Link` is to scroll to the top of the page. When there is a hash defined it will scroll to the specific id, like a normal `<a>` tag. To prevent scrolling to the top / hash `scroll={false}` can be added to `Link`:
Copy file name to clipboardExpand all lines: docs/basic-features/eslint.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,6 +90,7 @@ Next.js provides an ESLint plugin, [`eslint-plugin-next`](https://www.npmjs.com/
90
90
| ✔️ |[next/no-head-import-in-document](https://nextjs.org/docs/messages/no-head-import-in-document)| Disallow importing next/head in pages/document.js |
91
91
| ✔️ |[next/no-html-link-for-pages](https://nextjs.org/docs/messages/no-html-link-for-pages)| Prohibit HTML anchor links to pages without a Link component |
92
92
| ✔️ |[next/no-img-element](https://nextjs.org/docs/messages/no-img-element)| Prohibit usage of HTML <img> element |
93
+
| ✔️ |[next/no-head-element](https://nextjs.org/docs/messages/no-head-element)| Prohibit usage of HTML <head> element |
| ✔️ |[next/no-title-in-document-head](https://nextjs.org/docs/messages/no-title-in-document-head)| Disallow using <title> with Head from next/document |
@@ -202,11 +203,15 @@ Then, add `prettier` to your existing ESLint config:
202
203
If you would like to use `next lint` with [lint-staged](https://github.com/okonet/lint-staged) to run the linter on staged git files, you'll have to add the following to the `.lintstagedrc.js` file in the root of your project in order to specify usage of the `--file` flag.
An HTML `<head>` element was used to include page-level metadata, but this can cause unexpected behavior in a Next.js application. Use Next.js' built-in `<Head />` component instead.
0 commit comments