mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-31 06:33:03 +02: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