The best way to control Claude Code, Codex and more from any computer or phone

main
ts 11 lines 313 Bytes
Raw
1 import { useClerk } from "@clerk/react";
2
3 export function useClerkLoadFailed() {
4 return useClerk().status === "error";
5 }
6
7 export function retryClerkLoad() {
8 // Clerk caches its failed script load for the life of the page and never
9 // retries, so a reload is the only recovery.
10 window.location.reload();
11 }