function CreateThirdpartyForm() { const { create, pendingCount } = useSyncClient({ apiUrl: '/api/smartauth', getAccessToken: () => localStorage.getItem('access_token'), scope: ['thirdparty'] }); const handleCreate = async (data) => { // Crée localement avec un ID temporaire // Sera synchronisé quand la connexion revient const tempId = await create('thirdparty', { name: data.name, email: data.email, phone: data.phone }); console.log('Créé avec ID temporaire:', tempId); }; return (
); }