Skip to content

Commit 5975cef

Browse files
committed
chore: Remove whitespacing from github-ui commits
1 parent 27038c3 commit 5975cef

File tree

1 file changed

+5
-6
lines changed
  • docs/01-app/05-api-reference/05-config/01-next-config-js

1 file changed

+5
-6
lines changed

docs/01-app/05-api-reference/05-config/01-next-config-js/taint.mdx

+5-6
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ version: experimental
66

77
## Usage
88

9-
The `taint` option enables support for experimental React APIs for tainting objects and values. This feature helps prevent sensitive data from being accidentally passed to the client. When enabled, you can use:
9+
The `taint` option enables support for experimental React APIs for tainting objects and values. This feature helps prevent sensitive data from being accidentally passed to the client. When enabled, you can use:
1010

11-
- [`experimental_taintObjectReference`](https://react.dev/reference/react/experimental_taintObjectReference) taint objects references.
11+
- [`experimental_taintObjectReference`](https://react.dev/reference/react/experimental_taintObjectReference) taint objects references.
1212
- [`experimental_taintUniqueValue`](https://react.dev/reference/react/experimental_taintUniqueValue) to taint unique values.
1313

1414
> **Good to know**: Activating this flag also enables the React `experimental` channel for `app` directory.
@@ -36,12 +36,11 @@ const nextConfig = {
3636
module.exports = nextConfig
3737
```
3838

39-
4039
> **Warning:** Do not rely on the taint API as your only mechanism to prevent exposing sensitive data to the client. See our [security recommendations](/blog/security-nextjs-server-components-actions).
4140
4241
The taint APIs allows you to be defensive, by declaratively and explicitly marking data that is not allowed to pass through the Server-Client boundary. When an object or value, is passed through the Server-Client boundary, React throws an error.
4342

44-
This is helpful for cases where:
43+
This is helpful for cases where:
4544

4645
- The methods to read data are out of your control
4746
- You have to work with sensitive data shapes not defined by you
@@ -125,7 +124,7 @@ export async function ContactPage({ params }) {
125124
}
126125
```
127126

128-
Now, passing the entire object to the Client Component will throw an error.
127+
Now, passing the entire object to the Client Component will throw an error.
129128

130129
```tsx switcher
131130
export async function ContactPage({
@@ -212,7 +211,7 @@ export async function Dashboard() {
212211

213212
Note that, even though, `systemConfig.SERVICE_API_KEY` is reassigned to a new variable. Passing it to a Client Component still throws an error.
214213

215-
Whereas, a value derived from a tainted unique value, will be exposed to the client.
214+
Whereas, a value derived from a tainted unique value, will be exposed to the client.
216215

217216
```tsx
218217
export async function Dashboard() {

0 commit comments

Comments
 (0)