This commit fixes an issue where the check state of categories was lost when toggling between card and tree views. This is solved by immediately emitting node state changes for all nodes. This ensures consistent view transitions without any loss of node state information. Furthermore, this commit includes added unit tests for the modified code sections.
13 lines
424 B
TypeScript
13 lines
424 B
TypeScript
import { useAutoUnsubscribedEvents } from '@/presentation/components/Shared/Hooks/UseAutoUnsubscribedEvents';
|
|
import { EventSubscriptionCollectionStub } from './EventSubscriptionCollectionStub';
|
|
|
|
export class UseAutoUnsubscribedEventsStub {
|
|
public readonly events = new EventSubscriptionCollectionStub();
|
|
|
|
public get(): ReturnType<typeof useAutoUnsubscribedEvents> {
|
|
return {
|
|
events: this.events,
|
|
};
|
|
}
|
|
}
|