@ -262,34 +262,34 @@ export function flush_sync_in_effect() {
}
/ * *
* Cannot c reate a fork inside an effect or when state changes are pending
* Cannot c ommit a fork that was already committed or discarded
* @ returns { never }
* /
export function fork _ timing ( ) {
export function fork _ discarded ( ) {
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 ` ) ;
const error = new Error ( ` fork_ discarded\n Cannot commit a fork that was already committed or discarded \n https://svelte.dev/e/fork_discarded ` ) ;
error . name = 'Svelte error' ;
throw error ;
} else {
throw new Error ( ` https://svelte.dev/e/fork_ timing ` ) ;
throw new Error ( ` https://svelte.dev/e/fork_ discarded ` ) ;
}
}
/ * *
* Cannot c ommit a fork that was already committed or discarded ( including as a result of a different fork being committed )
* Cannot c reate a fork inside an effect or when state changes are pending
* @ returns { never }
* /
export function fork _ discarded ( ) {
export function fork _ timing ( ) {
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 ` ) ;
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_ discarded ` ) ;
throw new Error ( ` https://svelte.dev/e/fork_ timing ` ) ;
}
}