mirror of
https://github.com/domfelipe/mika-agent-assist.git
synced 2026-08-07 06:36:46 +00:00
Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
parent
55f1e8b8f0
commit
0998a4523e
1 changed files with 3 additions and 0 deletions
|
|
@ -23,6 +23,9 @@ export function useAgentInstance() {
|
|||
return useQuery({
|
||||
queryKey: ["agent-instance", user?.id],
|
||||
enabled: !!user,
|
||||
refetchInterval: 10000,
|
||||
staleTime: 0,
|
||||
refetchOnWindowFocus: true,
|
||||
queryFn: async (): Promise<AgentInstance | null> => {
|
||||
const { data, error } = await supabase
|
||||
.from("agent_instances")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue