Patch Changes
-
3219eab: feat(react): support async/function headers in useObject
The
useObjecthook now accepts headers as an async function, enabling dynamic header generation (e.g., fetching auth tokens) without causing the hook to re-render.This provides parity with
useChatand resolves issues with infinite loops when using state-based headers withuseEffect.