mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-14 23:44:01 +02:00
various performance refactors
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import merge from 'lodash/merge';
|
||||
import { nanoid } from 'nanoid';
|
||||
import { useMemo } from 'react';
|
||||
import { persist, subscribeWithSelector } from 'zustand/middleware';
|
||||
import { immer } from 'zustand/middleware/immer';
|
||||
import { useShallow } from 'zustand/react/shallow';
|
||||
@@ -1636,10 +1637,13 @@ export const usePlayerActions = () => {
|
||||
})),
|
||||
);
|
||||
|
||||
return {
|
||||
...actions,
|
||||
setTimestamp: setTimestampStore,
|
||||
};
|
||||
return useMemo(
|
||||
() => ({
|
||||
...actions,
|
||||
setTimestamp: setTimestampStore,
|
||||
}),
|
||||
[actions],
|
||||
);
|
||||
};
|
||||
|
||||
export type AddToQueueByPlayType = Play;
|
||||
|
||||
Reference in New Issue
Block a user