NNuxt•Created by Preyash on 4/6/2024 in #❓・help Is that possible to fetch data on delete item without manually calling fetchData?
Move your useFetch out of the function and put it in the setup scope.
Set the params to immediate: false for useFetch.
When u wan to make the api call. U can use useFetchVariable.execute()