mirror of https://github.com/sveltejs/svelte
chore: DRY out increment logic (#16332)
parent
c3361bfdb7
commit
0cafe34c92
@ -1,7 +0,0 @@
|
||||
/** @import { Source } from '#client' */
|
||||
import { set } from '../internal/client/reactivity/sources.js';
|
||||
|
||||
/** @param {Source<number>} source */
|
||||
export function increment(source) {
|
||||
set(source, source.v + 1);
|
||||
}
|
Loading…
Reference in new issue