Subsonic 2, general rework (#758)

This commit is contained in:
Kendall Garner
2024-09-26 04:23:08 +00:00
committed by GitHub
parent 31492fa9ef
commit 8cddbef701
69 changed files with 4625 additions and 3566 deletions
+5 -2
View File
@@ -627,7 +627,10 @@ export const useListStore = create<ListSlice>()(
export const useListStoreActions = () => useListStore((state) => state._actions);
export const useListStoreByKey = <TFilter>(args: { filter?: Partial<TFilter>; key: string }) => {
export const useListStoreByKey = <TFilter>(args: {
filter?: Partial<TFilter>;
key: string;
}): ListItemProps<TFilter> => {
const key = args.key as keyof ListState['item'];
return useListStore(
(state) => ({
@@ -644,7 +647,7 @@ export const useListStoreByKey = <TFilter>(args: { filter?: Partial<TFilter>; ke
export const useListFilterByKey = <TFilter>(args: {
filter?: Partial<TFilter> | any;
key: string;
}) => {
}): TFilter => {
const key = args.key as keyof ListState['item'];
return useListStore(
(state) => {