feat: Upgrade to Next.js 16.1 & React 19.2, migrate to Supabase SSR with async client handling
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { useEffect } from 'react';
|
||||
import { createClientComponentClient } from '@supabase/auth-helpers-nextjs';
|
||||
import { createClient } from '@/lib/supabase/client';
|
||||
import { db } from '@/lib/db';
|
||||
import { getAllSystemTags } from '@/services/tags';
|
||||
|
||||
export function useCacheSync() {
|
||||
const supabase = createClientComponentClient();
|
||||
const supabase = createClient();
|
||||
|
||||
useEffect(() => {
|
||||
const syncCache = async () => {
|
||||
|
||||
Reference in New Issue
Block a user