You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the TypeScript compiler option exactOptionalPropertyTypes is enabled, RTK Query hook results don’t narrow data (and similarly error) after status flag checks. For example, inside an if (result.isSuccess) block, result.data still has the type T | undefined instead of narrowing to T. With the flag disabled, narrowing behaves as expected.