mgm87
mgm87

Reputation: 894

Call a memoized function using toSignal from the template

I want to use a SignalStore method to generate a signal from an observable. The function is memoized so I don't make a ton of subscriptions to the observable. When I call the method from the template I get this error NG0602: toSignal() cannot be called from within a reactive context. I have mitigated the risk by memoizing, how can I get around the error?

Upvotes: 0

Views: 29

Answers (0)

Related Questions