Skip to content
Source
Sign inSign up
TanStack/virtual

fix(angular-virtual): RuntimeError: NG0600: Writing to signals is not allowed in a computed or an effect by default #1109

ClosedStallion8472(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/1109/headopened

Showing 3 changed files with 66 additions and 146 deletions.

x
0 of 3 viewed, 3 left
5 additions and 0 deletions.changeset/clean-ends-wish.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/angular-virtual': patch
+---
+​
+Fixes writing to signal error in angular effect
61 additions and 29 deletionspackages/angular-virtual/src/index.tsModified
View file
@@ -5,7 +5,6 @@
effect,
inject,
signal,
- untracked,
} from '@angular/core'
import {
Virtualizer,
@@ -16,7 +15,6 @@
observeWindowRect,
windowScroll,
} from '@tanstack/virtual-core'
-import { proxyVirtualizer } from './proxy'
import type { ElementRef, Signal } from '@angular/core'
import type { PartialKeys, VirtualizerOptions } from '@tanstack/virtual-core'