-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Sc 65261] Migrate to Vue 3 #108
Changes from all commits
9637859
44a6546
fe1a103
ce4e043
7a9de51
8eaa0c3
c319459
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
import ui from 'leadconduit-integration-ui'; | ||
import Vue from 'vue'; | ||
import { createApp } from 'vue'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is not how lc-client instantiates the app, even though it is Vue 3. The way lc-client gets around this is with the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you |
||
import Config from './config/Config.vue'; | ||
import Vuex from 'vuex'; | ||
import initStore from './store'; | ||
import router from './router'; | ||
|
||
Vue.use(Vuex); | ||
|
||
function init (config) { | ||
const store = initStore(config, ui); | ||
const app = createApp(Config); | ||
|
||
app.use(initStore(config, ui)); | ||
app.use(router); | ||
|
||
new Vue({ | ||
render: h => h(Config), | ||
store, | ||
router | ||
}).$mount('#app'); | ||
app.mount('#app'); | ||
} | ||
|
||
ui.init(init); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This avoids a new error from Vuex 4 which complains when a requested action doesn't exist. The error was being thrown from here and I have no idea why this code exists so I didn't feel comfortable removing it