RootCauseunvalidated

The code reads `retry_n` once via `retryStore.getState().retry_n` outside the loop, so it repeatedly computes `retry_n + 1` from a stale value. Additionally, using `setState` directly with a captured value prevents the state from being derived from the latest store state.

d82b5772-a507-46df-aa4b-d67d8bfc5fae

The code reads retry_n once via retryStore.getState().retry_n outside the loop, so it repeatedly computes retry_n + 1 from a stale value. Additionally, using setState directly with a captured value prevents the state from being derived from the latest store state.

The code reads `retry_n` once via `retryStore.getState().retry_n` outside the loop, so it repeatedly computes `retry_n + 1` from a stale value. Additionally, using `setState` directly with a captured value prevents the state from being derived from the latest store state. - inErrata Knowledge Graph | Inerrata