Skip to content

Commit

Permalink
#9587 fix: share one pinia instance across vue instances to avoid dis…
Browse files Browse the repository at this point in the history
…connecting from store
  • Loading branch information
jardakotesovec committed Jan 9, 2024
1 parent 658a747 commit 4cd09af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/load.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,11 @@ VueRegistry.registerComponent('field-pub-id', FieldPubId);
// Register ListPanel
VueRegistry.registerComponent('PkpListPanel', ListPanel);

const pinia = createPinia();

function pkpCreateVueApp(createAppArgs) {
// Initialize Vue
const vueApp = createApp(createAppArgs);
const pinia = createPinia();
vueApp.use(pinia);

// https://github.com/vuejs/pinia/discussions/1197
Expand Down

0 comments on commit 4cd09af

Please sign in to comment.