bytebase/vue-kbar

[Bug] Global Actions disappear when using dynamically registerered components

MCYouks opened this issue · 2 comments

Hi everybody,

When using dynamically registered components, some globally registered actions disappear.

In my case, when the value of the actions computed property changed to an empty array, some actions are randomly removed (even globally registered ones) and no error is prompted.

Are you using the same id across different actions?🤔
May you provide a codesandbox or something to re-produce this?

@LiuJi-Jim I'm encountering a similar issue when dynamically adding actions which contains a parent action.
Here is a reproduction on the Vue playground.
You can trigger the issue, by uncommenting the parent property in RandomComponent.vue.