Add and fix react hooks lint rules, single repertoire view

This commit is contained in:
2024-12-28 20:54:17 +01:00
parent 29636d9946
commit 7c7bac5a9f
11 changed files with 237 additions and 16 deletions

View File

@@ -88,7 +88,7 @@ export function useStore<T = Store>(selector: Selector<T> = Function.identity as
return () => {
listeners.delete(listener);
};
}, []);
}, [selector]);
return state;
}