Loading homepage
Input: value = 0 Output: Result: 0
Input: value = 3 Output: Result: 14 (1 + 4 + 9)
Input: value = 5 Output: Result: 55 (1 + 4 + 9 + 16 + 25)
Input: Mount, then click Update unrelated state five times Output: Primary computations: 1. Secondary computations: 1. Unoptimized comparison computations: 6.
Input: Apply a different primary input Output: The primary result changes and its computation count increases by one. The secondary calculation stays cached.
The result is the sum of the squares of all positive integers up to value. Draft edits do not change the committed prop until Apply is clicked.