pass ganti
try {
let {data} = await axios.post(api/add-to-cart/${playlist.slug}
)
toaster.notify(data.message, {position:'bottom-right',duration: 3000})
setANumberOfCart(cart => [...cart,data.data])
} catch (error) {
toaster.notify(error.response.data.message, {position:'bottom-right',duration: 3000})
}
}
klik cart playlist name gk muncul, perlu di refresh baru muncul
Mari Kita Bangun Screencast