You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(vue): useAskableSource enabled option evaluated once at setup — not reactive #268
useAskableSource in packages/vue/src/useAskableSource.ts reads options.enabled once at component setup time and never re-evaluates it. If a parent component changes enabled from false to true (or vice versa) after mount, the source registration state does not change.
Root cause
exportfunctionuseAskableSource(id,source,options={}){const{ enabled =true, ...askableOptions}=options;// ...if(enabled&&sourceId){// evaluated ONCE at setuphandle=ctx.registerSource(sourceId,buildProxy());registered=true;}onUnmounted(unregister);}
There is no watch on enabled, so toggling it at runtime has no effect.
Activity