#Reactive Forms default value with Signals and ProvideExperimentalZonelessChangeDetection
7 messages · Page 1 of 1 (latest)
No. It's because fetching data from a server is asynchronous. So when you initialize your form (immediately after sending the request), the response hasn't been received yet.
Okey, thx for info.
Would using Effect be okey here do you think?
It works, just wondering if it's a bad pattern
Your company signal looks useless. I would simply subscribe to the observable and populate the form from there.
The code is simplified as an example.
The signal is being used in my template and component