tpmjs/apps/playground/src/hooks
Ajax Davis d0110f990d fix: read env vars directly from localStorage to avoid React closure issue
The previous approach using useEnvVars() hook had a closure problem:
- envVars started as [] on first render
- buildEnvObject captured this empty array
- Even with function body, the transport memoized the old buildEnvObject

Solution: Read directly from localStorage inside the body function
- Bypasses React state entirely
- Gets fresh values on each request
- No closure issues

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 14:36:51 +10:00
..
useChat.ts fix: read env vars directly from localStorage to avoid React closure issue 2025-12-04 14:36:51 +10:00
useToolUsage.ts feat: implement playground app with AI SDK v6 tool execution 2025-12-04 02:51:02 +10:00