mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-28 04:11:16 +01:00
Move JS monorepo packages to folder
This commit is contained in:
@@ -8,7 +8,7 @@ import {useEffect} from 'react';
|
||||
*/
|
||||
export function useListenToTauriEvent<T>(event: EventName, fn: EventCallback<T>) {
|
||||
useEffect(() => {
|
||||
const unlisten = listen(
|
||||
const unlisten = listen<T>(
|
||||
event,
|
||||
fn,
|
||||
// Listen to `emit_all()` events or events specific to the current window
|
||||
|
||||
Reference in New Issue
Block a user