We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a341a2 commit 7363f87Copy full SHA for 7363f87
packages/svelte/src/internal/client/index.js
@@ -137,7 +137,7 @@ export {
137
$window as window,
138
$document as document
139
} from './dom/operations.js';
140
-export { noop, call_once } from '../shared/utils.js';
+export { noop } from '../shared/utils.js';
141
export {
142
add_snippet_symbol,
143
validate_component,
packages/svelte/src/internal/shared/utils.js
@@ -23,19 +23,3 @@ export function run_all(arr) {
23
arr[i]();
24
}
25
26
-
27
-/**
28
- * @param {Function} fn
29
- */
30
-export function call_once(fn) {
31
- let called = false;
32
- /** @type {unknown} */
33
- let result;
34
- return function () {
35
- if (!called) {
36
- called = true;
37
- result = fn();
38
- }
39
- return result;
40
- };
41
-}
0 commit comments