mirror of https://github.com/sveltejs/svelte
parent
f98b73e6f5
commit
4d11b5656e
@ -0,0 +1,14 @@
|
||||
/* index.svelte.js generated by Svelte VERSION */
|
||||
import * as $ from 'svelte/internal/client';
|
||||
|
||||
export default function proxy(object) {
|
||||
return $.proxy(object);
|
||||
}
|
||||
|
||||
export function createCounter() {
|
||||
let count = $.state(0);
|
||||
|
||||
$.update(count);
|
||||
}
|
||||
|
||||
export const proxy_in_arrow = (object) => $.proxy(object);
|
@ -0,0 +1,14 @@
|
||||
/* index.svelte.js generated by Svelte VERSION */
|
||||
import * as $ from 'svelte/internal/server';
|
||||
|
||||
export default function proxy(object) {
|
||||
return object;
|
||||
}
|
||||
|
||||
export function createCounter() {
|
||||
let count = 0;
|
||||
|
||||
count++;
|
||||
}
|
||||
|
||||
export const proxy_in_arrow = (object) => object;
|
@ -0,0 +1,8 @@
|
||||
export default function proxy(object) {
|
||||
return $state(object);
|
||||
}
|
||||
export function createCounter() {
|
||||
let count = $state(0);
|
||||
count++;
|
||||
}
|
||||
export const proxy_in_arrow = object => $state(object);
|
Loading…
Reference in new issue