Skip to content

Commit 2b3e4f9

Browse files
committed
update
1 parent 9ef7a8d commit 2b3e4f9

File tree

1 file changed

+6
-3
lines changed
  • src/routes/reference/rendering

1 file changed

+6
-3
lines changed

src/routes/reference/rendering/dev.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ description: >-
1313
---
1414

1515
`DEV` is a development-only export from `solid-js`.
16+
It exposes Solid's development hooks and internals for development tooling and diagnostics.
1617

1718
## Import
1819

@@ -43,8 +44,8 @@ const DEV:
4344

4445
## Behavior
4546

46-
- In development builds, `DEV` is defined and exposes development hooks.
47-
- In production builds, `DEV` is `undefined`.
47+
- In the development browser bundle, `DEV` is defined and exposes development hooks.
48+
- In production and server bundles, `DEV` is `undefined`.
4849

4950
## Examples
5051

@@ -54,7 +55,9 @@ const DEV:
5455
import { DEV } from "solid-js";
5556

5657
if (DEV) {
57-
console.log("development build");
58+
DEV.hooks.afterUpdate = () => {
59+
console.log("component graph updated");
60+
};
5861
}
5962
```
6063

0 commit comments

Comments
 (0)