Not sure if this is a stupid question but is there a cleaner looking way to only utilise the second/third callback when a function is called?
uploadTask.on('state_change', ()=>{}, ()=> {}, () => {
updateCampsite(newCampsiteRef.id, data)
})
Here I only want to use the third call back but it won't work without the empty functions before it. Is there a better way? Or should I not do this at all?
TIA!