Skip to content

Commit

Permalink
feat(core): useConstant, createSignal, createComputed$ (#6319)
Browse files Browse the repository at this point in the history
* feat(core): useConst, createSignal, createComputed$

* refactor(useConst): rename to useConstant

* docs(useConst): rename to useConstant

---------

Co-authored-by: PatrickJS <github@patrickjs.com>
  • Loading branch information
wmertens and PatrickJS authored May 27, 2024
1 parent b41a2a8 commit f51259b
Show file tree
Hide file tree
Showing 14 changed files with 477 additions and 92 deletions.
2 changes: 1 addition & 1 deletion packages/docs/src/routes/api/qwik-city/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@
}
],
"kind": "Function",
"content": "```typescript\nserver$: <T extends ServerFunction>(first: T, options?: ServerConfig | undefined) => ServerQRL<T>\n```\n\n\n<table><thead><tr><th>\n\nParameter\n\n\n</th><th>\n\nType\n\n\n</th><th>\n\nDescription\n\n\n</th></tr></thead>\n<tbody><tr><td>\n\nfirst\n\n\n</td><td>\n\nT\n\n\n</td><td>\n\n\n</td></tr>\n<tr><td>\n\noptions\n\n\n</td><td>\n\nServerConfig \\| undefined\n\n\n</td><td>\n\n_(Optional)_\n\n\n</td></tr>\n</tbody></table>\n**Returns:**\n\n[ServerQRL](#serverqrl)<!-- -->&lt;T&gt;",
"content": "```typescript\nserver$: <T extends ServerFunction>(qrl: T, options?: ServerConfig | undefined) => ServerQRL<T>\n```\n\n\n<table><thead><tr><th>\n\nParameter\n\n\n</th><th>\n\nType\n\n\n</th><th>\n\nDescription\n\n\n</th></tr></thead>\n<tbody><tr><td>\n\nqrl\n\n\n</td><td>\n\nT\n\n\n</td><td>\n\n\n</td></tr>\n<tr><td>\n\noptions\n\n\n</td><td>\n\nServerConfig \\| undefined\n\n\n</td><td>\n\n_(Optional)_\n\n\n</td></tr>\n</tbody></table>\n**Returns:**\n\n[ServerQRL](#serverqrl)<!-- -->&lt;T&gt;",
"editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik-city/runtime/src/server-functions.ts",
"mdFile": "qwik-city.server_.md"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/docs/src/routes/api/qwik-city/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2129,7 +2129,7 @@ RouterOutlet: import("@builder.io/qwik").Component<unknown>;
```typescript
server$: <T extends ServerFunction>(
first: T,
qrl: T,
options?: ServerConfig | undefined,
) => ServerQRL<T>;
```
Expand All @@ -2149,7 +2149,7 @@ Description
</th></tr></thead>
<tbody><tr><td>
first
qrl
</td><td>
Expand Down
96 changes: 83 additions & 13 deletions packages/docs/src/routes/api/qwik/api.json

Large diffs are not rendered by default.

Loading

0 comments on commit f51259b

Please sign in to comment.