File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed
packages/docs/src/routes/docs
cookbook/streaming-deferred-loaders
integrations/modular-forms Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ By returning an asynchronous function from our `routeLoader$` we can stream/defe
19
19
import { Resource , component$ } from ' @builder.io/qwik' ;
20
20
import { routeLoader$ } from ' @builder.io/qwik-city' ;
21
21
22
- export const useMyData = routeLoader$ (() => {
22
+ export const useMyData = routeLoader$ (async () => {
23
23
return async () => {
24
24
await delay (4_000 );
25
25
return ' MyData ' + Math .random ();
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ contributors:
8
8
- uceumice
9
9
- Benny-Nottonson
10
10
- mrhoodz
11
- updated_at : ' 2023-10-03T18:53:59Z'
11
+ - extrordinaire
12
+ updated_at : ' 2025-06-21T22:03:36.397Z'
12
13
created_at : ' 2023-04-28T22:00:03Z'
13
14
---
14
15
@@ -21,25 +22,29 @@ import PackageManagerTabs from '~/components/package-manager-tabs/index.tsx';
21
22
22
23
To get started, install the ` @modular-forms/qwik ` package:
23
24
25
+ > ⚠️ Warning:
26
+ > Make sure to install @modular-forms/qwik as a devDependency, since it only runs at build/SSR time.
27
+ > Putting it in your regular dependencies will trigger Vite plugin errors.
28
+
24
29
<PackageManagerTabs >
25
30
<span q :slot = " pnpm" >
26
31
``` shell
27
- pnpm install @modular-forms/qwik
32
+ pnpm add -D @modular-forms/qwik
28
33
```
29
34
</span >
30
35
<span q :slot = " npm" >
31
36
``` shell
32
- npm install @modular-forms/qwik
37
+ npm install -D @modular-forms/qwik
33
38
```
34
39
</span >
35
40
<span q :slot = " yarn" >
36
41
``` shell
37
- yarn add @modular-forms/qwik
42
+ yarn add -D @modular-forms/qwik
38
43
```
39
44
</span >
40
45
<span q :slot = " bun" >
41
46
``` shell
42
- bun install @modular-forms/qwik
47
+ bun install -D @modular-forms/qwik
43
48
```
44
49
</span >
45
50
</PackageManagerTabs >
You can’t perform that action at this time.
0 commit comments