Add session data manager hook

This commit is contained in:
Bill 2021-06-13 04:13:19 -04:00
parent 2cd39f8121
commit 708c7370d9

View File

@ -0,0 +1,8 @@
import { NitroEvent } from 'nitro-renderer';
import { GetSessionDataManager } from '../../../../api';
import { CreateEventDispatcherHook } from '../../event-dispatcher.base';
export function useSessionDataManagerEvent(type: string, handler: (event: NitroEvent) => void): void
{
CreateEventDispatcherHook(type, GetSessionDataManager().events, handler);
}