flush_sync_in_effect() — svelte Function Reference
Architecture documentation for the flush_sync_in_effect() function in errors.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 41b7222a_9e92_c61d_26de_180f5fdaf5f4["flush_sync_in_effect()"] ff387d97_d6d2_81e0_e731_656552709d27["errors.js"] 41b7222a_9e92_c61d_26de_180f5fdaf5f4 -->|defined in| ff387d97_d6d2_81e0_e731_656552709d27 style 41b7222a_9e92_c61d_26de_180f5fdaf5f4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/internal/client/errors.js lines 236–246
export function flush_sync_in_effect() {
if (DEV) {
const error = new Error(`flush_sync_in_effect\nCannot use \`flushSync\` inside an effect\nhttps://svelte.dev/e/flush_sync_in_effect`);
error.name = 'Svelte error';
throw error;
} else {
throw new Error(`https://svelte.dev/e/flush_sync_in_effect`);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does flush_sync_in_effect() do?
flush_sync_in_effect() is a function in the svelte codebase, defined in packages/svelte/src/internal/client/errors.js.
Where is flush_sync_in_effect() defined?
flush_sync_in_effect() is defined in packages/svelte/src/internal/client/errors.js at line 236.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free