mirror of
https://github.com/domfelipe/mika-agent-assist.git
synced 2026-08-07 10:16:43 +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({
|
return useQuery({
|
||||||
queryKey: ["agent-instance", user?.id],
|
queryKey: ["agent-instance", user?.id],
|
||||||
enabled: !!user,
|
enabled: !!user,
|
||||||
|
refetchInterval: 10000,
|
||||||
|
staleTime: 0,
|
||||||
|
refetchOnWindowFocus: true,
|
||||||
queryFn: async (): Promise<AgentInstance | null> => {
|
queryFn: async (): Promise<AgentInstance | null> => {
|
||||||
const { data, error } = await supabase
|
const { data, error } = await supabase
|
||||||
.from("agent_instances")
|
.from("agent_instances")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue