You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
No I can't find a related issue
🚀 feature request
Description
If I have for example a code like this:
a=signal("A");b=signal("B");c=computed(()=>{console.log("c");returnthis.a()+this.d();});d=computed(()=>{console.log("d");returnthis.a()+this.c();});// And a call like this in ngOnInitthis.a.set("Ax");console.log(this.c());console.log(this.d());
Angular will show me the following in the developer console of the browser:
I would expect angular to already show an error or warning right in VS Code etc.
Feature Type
I think it's related to both of them but I dont know for sure.
[ x ] Angular Language Service VSCode extension
[ x ] Angular Language Service server
Describe the solution you'd like
As described above the solution would be to already show an error before in the code editor so a bug like this can't be overseen also it would be useful if angular also wouldn't compile like that cause something has to be wrong if u have a loop inside of ur computed signals.
Describe alternatives you've considered
Have you considered any alternative solutions or workarounds?
Anything else relevant?
The text was updated successfully, but these errors were encountered:
As described above the solution would be to already show an error before in the code editor so a bug like this can't be overseen also it would be useful if angular also wouldn't compile like that cause something has to be wrong if u have a loop inside of ur computed signals.
This is not feasible in general as signal dependency tracking is dynamic and a set of dependencies can change as the application runs - hence the runtime check / error.
Is your feature request related to a problem? Please describe.
No I can't find a related issue
🚀 feature request
Description
If I have for example a code like this:
Angular will show me the following in the developer console of the browser:
I would expect angular to already show an error or warning right in VS Code etc.
Feature Type
I think it's related to both of them but I dont know for sure.
Describe the solution you'd like
As described above the solution would be to already show an error before in the code editor so a bug like this can't be overseen also it would be useful if angular also wouldn't compile like that cause something has to be wrong if u have a loop inside of ur computed signals.
Describe alternatives you've considered
Have you considered any alternative solutions or workarounds?Anything else relevant?
The text was updated successfully, but these errors were encountered: