-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Change syntax to support closers capturing variables
Change syntax from: ```typescript const Counter = qComponent<{}, {count: number}>({ onMount: qHook(() => {count: 0}), onRender: qHook((props, state) => ( <button on:click={qHook<typeof Counter>((props, state) => state.count++)}> {state.count} </button> ) }); ``` to: ```typescript const Counter = qComponent<>(() => { const state = useState(); return onRender(() => ( <button on:click={() => state.count++)}> {state.count} </button> ) }); ``` Co-authored-by: Adam Bradley <adamdbradley@users.noreply.github.com> Co-authored-by: Manu MA <manu.mtza@gmail.com>
- Loading branch information
1 parent
40f0adc
commit 48d84ea
Showing
170 changed files
with
9,760 additions
and
26,980 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.history | ||
.vscode | ||
dist | ||
dist-dev | ||
bazel-* | ||
node_modules | ||
tsc-out | ||
external | ||
*. | ||
**/*.log | ||
etc | ||
temp | ||
tsdoc-metadata.json | ||
**/.DS_Store | ||
integration/out/ | ||
integration/todo/output | ||
integration/*.js | ||
integration/*.cjs | ||
integration/*.map | ||
cypress/screenshots | ||
cypress/videos | ||
cypress/fixtures/ | ||
src/napi/package-* | ||
target | ||
*.node | ||
todo-express/ | ||
qwik-app/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.