Skip to content

Commit

Permalink
Revert star.ts and remove test
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Feb 22, 2025
1 parent 5d42472 commit a047ec3
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 47 deletions.
10 changes: 5 additions & 5 deletions bundles/datastar-aliased.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions bundles/datastar-aliased.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions bundles/datastar-core.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions bundles/datastar-core.js.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions bundles/datastar.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions bundles/datastar.js.map

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions library/src/plugins/official/core/attributes/star.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ export const Star: AttributePlugin = {
name: 'star',
keyReq: Requirement.Denied,
valReq: Requirement.Denied,
onLoad: ({ signals }) => {
//alert('YOU ARE PROBABLY OVERCOMPLICATING IT')
const value = signals.signal('result')?.value as number
signals.setValue('result', value + 1)
onLoad: () => {
alert('YOU ARE PROBABLY OVERCOMPLICATING IT')
},
}
4 changes: 2 additions & 2 deletions sdk/go/consts.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion site/routes_tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ func setupTests(ctx context.Context, router chi.Router) (err error) {
{ID: "merge_fragment_signal"},
{ID: "merge_fragment_whitespace"},
{ID: "on_load"},
{ID: "plugin_applied_once"},
{ID: "radio_input"},
{ID: "ref"},
{ID: "remove_fragment"},
Expand Down
9 changes: 0 additions & 9 deletions site/smoketests/plugin_applied_once_test.go

This file was deleted.

10 changes: 0 additions & 10 deletions site/static/md/tests/plugin_applied_once.md

This file was deleted.

0 comments on commit a047ec3

Please sign in to comment.