Skip to content

Commit cb2e2f3

Browse files
authored
Missing import in isServer docs (#713)
1 parent d468a41 commit cb2e2f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/routes/reference/rendering/is-server.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ This indicates that the code is being run as the server or browser bundle.
1111
As the underlying runtimes export this as a constant boolean it allows bundlers to eliminate the code and their used imports from the respective bundles.
1212

1313
```ts
14+
import { isServer } from "solid-js/web";
15+
1416
if (isServer) {
1517
// I will never make it to the browser bundle
1618
} else {

0 commit comments

Comments
 (0)