Suggest an editImprove this articleRefine the answer for “When is effect called for the first time?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)**`effect()`** is called immediately upon creation, once, to capture the initial state. After that it runs every time the signals it reads change. **Key point:** the first run is simply initialization, so the effect immediately "knows" the current state.Shown above the full answer for quick recall.Answer (EN)Image`effect()` is called **immediately upon creation**, once, to capture the initial state. The order is as follows: 1. You create `effect(() => console.log(counter()))`. 2. Angular immediately runs this code, printing the current value of `counter()`. 3. After that it is called **every time** `counter` changes. ### Example: ```ts const counter = signal(0); effect(() => { console.log('counter:', counter()); }); ``` Console output: ```javascript counter: 0 ← first call on creation counter: 1 ← after counter.set(1) counter: 2 ← after counter.set(2) ``` So the first run is simply initialization, so the effect immediately "knows" the current state.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.