Detect recursion when setting states