mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-01-19 05:46:27 +01:00
Add session data manager hook
This commit is contained in:
parent
2cd39f8121
commit
708c7370d9
@ -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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user