File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/routes/reference/rendering Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff 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:
5455import { DEV } from " solid-js" ;
5556
5657if (DEV ) {
57- console .log (" development build" );
58+ DEV .hooks .afterUpdate = () => {
59+ console .log (" component graph updated" );
60+ };
5861}
5962```
6063
You can’t perform that action at this time.
0 commit comments