PMDL
PMDL
NNuxt
Created by PMDL on 10/18/2023 in #❓・help
I want to instanciate incoming data using useFetch(), should I use transform or onResponse()?
Right now I use transform:
let { data } = await useFetch(
url,
{
method: "get",
transform: (input) => {
return myInstanciationFunction(input)
},
}
)
let { data } = await useFetch(
url,
{
method: "get",
transform: (input) => {
return myInstanciationFunction(input)
},
}
)
That works, but is that the correct way to do this?
24 replies