Open oscartbeaumont opened 11 months ago
Idk, if I will do this but it might be a good idea.
Eg. current code:
useLibrarySubscription(['jobs.progress', activeJobId as string], { onData: setRealtimeUpdate, enabled: !!activeJobId && !showChildJobs });
Making something like this work:
useLibrarySubscription(() => !!activeJobId && !showChildJobs ? undefined : ['jobs.progress', activeJobId], { onData: setRealtimeUpdate, });
Idk, if I will do this but it might be a good idea.
Eg. current code:
Making something like this work: