0👍
You should use condition code after promise returns. Like so:
const getCat = () => import("z-mock-client")
const mocked = getCat().then((prop) => {
prop.mockedClient()
const apolloProvider = new VueApollo({
defaultClient: MOCKED_UI ? mocked : v2,
clients: {
v2: MOCKED_UI ? mocked : v2
}
})
});
- [Vuejs]-Template not showing in my Laravel 6.6 project with Vue.js
- [Vuejs]-Dict object to form data for patch operation in VueJS
Source:stackexchange.com