0👍
✅
Try the code below
import { reactive, ref, toRefs } from '@vue/composition-api';
export function userConfiguration() {
const val = ref('');
const breweries = reactive({ list: [] });
const submitted = async () => {
console.log('submitted called');
};
return { val, ...toRefs(breweries), submitted };
}
Source:stackexchange.com