0👍
export default function useNregister(){
var registers = ref()
//.....
//.......
return{
getRegisters,
registers,
/*deleteCall,
queryForKeywords,
getResults,
getItems*/
}
You return registers, but when it returns it has no value because it expects to get a value when the asynchronous code of axios finishes. The only valid return is getRegisters whitch can used by the caller.
Source:stackexchange.com