Move JS monorepo packages to folder

This commit is contained in:
Gregory Schier
2025-01-04 16:55:18 -08:00
parent 75ead9cc8a
commit 40adce921b
32 changed files with 427 additions and 310 deletions

View File

@@ -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