Thank you for this lesson . 👍 Sir, what will happens, if an error occurs between removal from the list and actual deletion?
@dhavalvanjara5727 күн бұрын
Hi, Vishwas. Can also elaborate the scenario when the api call get fail in that case how to reverted the ui changes while using the useOptimistic hook.
@Sushavan-l2u7 күн бұрын
what if the delete functionality fails? is there any kind of fallback?
@surajpatil-dn2fy3 күн бұрын
Is such cases, instead of revalidation on server, do the route refresh once the response is returned from server action, so from server action just send the response like { success:true, error:null } or { success: false, error: `failed to delete'}
@hassanjamalspeak7 күн бұрын
sir i am pakstan i am huge fan of you please dont winds up and please add typeOrm and postGreas datase offline. this is my personal request.