@ -261,6 +261,38 @@ export function flush_sync_in_effect() {
}
}
/ * *
* Cannot create a fork inside an effect or when state changes are pending
* @ returns { never }
* /
export function fork _timing ( ) {
if ( DEV ) {
const error = new Error ( ` fork_timing \n Cannot create a fork inside an effect or when state changes are pending \n https://svelte.dev/e/fork_timing ` ) ;
error . name = 'Svelte error' ;
throw error ;
} else {
throw new Error ( ` https://svelte.dev/e/fork_timing ` ) ;
}
}
/ * *
* Cannot commit a fork that was already committed or discarded ( including as a result of a different fork being committed )
* @ returns { never }
* /
export function fork _discarded ( ) {
if ( DEV ) {
const error = new Error ( ` fork_discarded \n Cannot commit a fork that was already committed or discarded (including as a result of a different fork being committed) \n https://svelte.dev/e/fork_discarded ` ) ;
error . name = 'Svelte error' ;
throw error ;
} else {
throw new Error ( ` https://svelte.dev/e/fork_discarded ` ) ;
}
}
/ * *
* ` getAbortSignal() ` can only be called inside an effect or derived
* @ returns { never }
@ -455,20 +487,4 @@ export function svelte_boundary_reset_onerror() {
} else {
throw new Error ( ` https://svelte.dev/e/svelte_boundary_reset_onerror ` ) ;
}
}
/ * *
* Cannot create a fork inside an effect or when state changes are pending
* @ returns { never }
* /
export function fork _timing ( ) {
if ( DEV ) {
const error = new Error ( ` fork_timing \n Cannot create a fork inside an effect or when state changes are pending \n https://svelte.dev/e/fork_timing ` ) ;
error . name = 'Svelte error' ;
throw error ;
} else {
throw new Error ( ` https://svelte.dev/e/fork_timing ` ) ;
}
}