Skip to content

Commit

Permalink
fix(history-queries): ensuring history-queries x-module registration …
Browse files Browse the repository at this point in the history
…before using components (#1512)
  • Loading branch information
joseacabaneros authored Jun 11, 2024
1 parent a427fa7 commit e3bb670
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import { VueCSSClasses } from '../../../utils/types';
import { XEventsTypes } from '../../../wiring/events.types';
import { historyQueriesXModule } from '../x-module';
import { useRegisterXModule } from '../../../composables/use-register-x-module';
import { useState } from '../../../composables/use-state';
/**
Expand All @@ -35,8 +34,6 @@
BaseEventButton
},
setup() {
useRegisterXModule(historyQueriesXModule);
/**
* The whole history queries.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import { historyQueriesXModule } from '../x-module';
import { isArrayEmpty } from '../../../utils/array';
import { use$x } from '../../../composables/use-$x';
import { useRegisterXModule } from '../../../composables/use-register-x-module';
import { useState } from '../../../composables/use-state';
/**
Expand All @@ -25,8 +24,6 @@
BaseSwitch
},
setup() {
useRegisterXModule(historyQueriesXModule);
const $x = use$x();
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
import { defineComponent } from 'vue';
import BaseSuggestions from '../../../components/suggestions/base-suggestions.vue';
import { historyQueriesXModule } from '../x-module';
import { useRegisterXModule } from '../../../composables/use-register-x-module';
import { useGetter } from '../../../composables/use-getter';
import HistoryQuery from './history-query.vue';
Expand All @@ -70,8 +69,6 @@
},
inheritAttrs: false,
setup() {
useRegisterXModule(historyQueriesXModule);
/**
* The filtered list of history queries.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
import { XEventsTypes } from '../../../wiring/events.types';
import { historyQueriesXModule } from '../x-module';
import { useGetter } from '../../../composables/use-getter';
import { useRegisterXModule } from '../../../composables/use-register-x-module';
import RemoveHistoryQuery from './remove-history-query.vue';
/**
Expand Down Expand Up @@ -76,8 +75,6 @@
},
emits: ['click'],
setup(props) {
useRegisterXModule(historyQueriesXModule);
/**
* The normalized query of the history-queries module.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
import { historyQueriesXModule } from '../x-module';
import { AnimationProp } from '../../../types/index';
import { useState } from '../../../composables/use-state';
import { useRegisterXModule } from '../../../composables/use-register-x-module';
import HistoryQuery from './history-query.vue';
/**
Expand Down Expand Up @@ -110,8 +109,6 @@
queriesListClass: String
},
setup(props) {
useRegisterXModule(historyQueriesXModule);
/**
* The list of history queries.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import BaseEventButton from '../../../components/base-event-button.vue';
import { XEventsTypes } from '../../../wiring/events.types';
import { historyQueriesXModule } from '../x-module';
import { useRegisterXModule } from '../../../composables/use-register-x-module';
/**
* Button that when it is pressed emits the
Expand All @@ -42,8 +41,6 @@
}
},
setup(props) {
useRegisterXModule(historyQueriesXModule);
/**
* The event handler that will be triggered when clicking on the clear history query button.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { XPlugin } from '../../plugins/x-plugin';
import { XModule } from '../x-modules.types';
import { historyQueriesEmitters } from './store/emitters';
import { historyQueriesXStoreModule } from './store/module';
Expand All @@ -23,3 +24,5 @@ export const historyQueriesXModule: HistoryQueriesXModule = {
storeEmitters: historyQueriesEmitters,
wiring: historyQueriesWiring
};

XPlugin.registerXModule(historyQueriesXModule);

0 comments on commit e3bb670

Please sign in to comment.