KenykaK
Convex Community13mo ago
2 replies
Kenyka

Sonner toast promise error

I don’t know if this error is related to convex or not, but I’ll ask just in case. In my project I use the Sonner library for toast and when I call the promise function *(so that toast depends on the result of loading/success/error) *on the local one it produces everything correctly, but when deployed to netlify it always produces only an error

I attached a video where I do the same actions on localhost and netlify

example of my use
const archive = useMutation(api.document.archive)
const promise = archive({
    id, 
    userId: orgId
})

toast.promise(promise, {
    loading: "Перемещаем в архив...",
    success: "Заметка перемещена в архив!",
    error: "Не удалось переместить в архив"
})
Emil Kowalski
An opinionated toast component for React.
Sonner
Was this page helpful?