db162e54af
Build and Deploy Verso / deploy (push) Successful in 11m37s
The previous implementation used useState() to detect the project type, but the file tree is loaded asynchronously after the WebSocket joinProject event, so pathInFolder() always returns null on the initial render. Use useEffect() instead — it re-runs when getRootDocInfo's reference changes (i.e. when the file tree populates), correctly detecting .typ root docs. Also adds updateAutoCompileDebounce() to DocumentCompiler so the tight debounce can be applied at that point. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>