8000 feat: allow `$state` in return statements by Ocean-OS · Pull Request #15589 · sveltejs/svelte · GitHub
[go: up one dir, main page]

Skip to content

feat: allow $state in return statements #15589

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
lint
  • Loading branch information
Ocean-OS committed Mar 29, 2025
commit e13c7d9b22c89e598dabcece31f2dd480520f7c8
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export default function proxy(object) {
return $state(object);
return $state(object);
}
export function createCounter() {
let count = $state(0);
count++;
let count = $state(0);
count++;
}
export const proxy_in_arrow = object => $state(object);
export const proxy_in_arrow = (object) => $state(object);
0