pull/12985/head
Rich Harris 2 years ago
parent e7ac284176
commit 5805970188

@ -311,12 +311,12 @@ export function state_prototype_fixed() {
}
/**
* Reading state that was created inside the same derived is forbidden. Consider using `untrack` to read locally created state.
* Reading state that was created inside the same derived is forbidden. Consider using `untrack` to read locally created state
* @returns {never}
*/
export function state_unsafe_local_read() {
if (DEV) {
const error = new Error(`state_unsafe_local_read\nReading state that was created inside the same derived is forbidden. Consider using \`untrack\` to read locally created state.`);
const error = new Error(`state_unsafe_local_read\nReading state that was created inside the same derived is forbidden. Consider using \`untrack\` to read locally created state`);
error.name = 'Svelte error';
throw error;

Loading…
Cancel
Save