Skip to content

await_reactivity_loss false positive even when used within untrack function #16381

Closed
@minht11

Description

@minht11

Describe the bug

If reactive variable is used within untrack it should not be reported as lost reactivity, because that is intended behavior in the first place.

	let countAsync = $derived.by(async () => {
		count
		await wait()

		// This is being flagged
		untrack(() => name)

		return count
	});

Reproduction

Reproduction

Logs

System Info

Svelte 5.36.1

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions