c89f61a77f
An axios instance (returned by axios.create()) is itself a callable function. React's useState setter treats any function argument as an updater callback, calling it with the previous state instead of storing it as the new value. This caused setClient(createClient(...)) to invoke the axios instance with null, store the resulting Promise as client, and produce "client.get is not a function (it is undefined)" at runtime. Fix: wrap in an arrow function so React uses the instance as the return value of the updater rather than as the updater itself. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>