Кеняка
Кеняка
CCConvex Community
Created by Кеняка on 1/12/2025 in #support-community
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: "Не удалось переместить в архив"
})
const archive = useMutation(api.document.archive)
const promise = archive({
id,
userId: orgId
})

toast.promise(promise, {
loading: "Перемещаем в архив...",
success: "Заметка перемещена в архив!",
error: "Не удалось переместить в архив"
})
3 replies
CCConvex Community
Created by Кеняка on 12/31/2024 in #support-community
object is not accepted undefined
No description
57 replies
CCConvex Community
Created by Кеняка on 10/14/2024 in #support-community
invalid args for renaming a file
No description
25 replies
CCConvex Community
Created by Кеняка on 10/4/2024 in #support-community
Getting Url for a file in convex
No description
17 replies