mirror of
https://github.com/jeffvli/sonixd.git
synced 2026-05-24 08:44:30 -04:00
Update query refetch settings for all list-views
- Prevent refetching during selections to not break uniqueId
This commit is contained in:
@@ -79,7 +79,9 @@ export const GlobalContextMenu = () => {
|
||||
const [shouldCreatePlaylist, setShouldCreatePlaylist] = useState(false);
|
||||
const [newPlaylistName, setNewPlaylistName] = useState('');
|
||||
|
||||
const { data: playlists }: any = useQuery(['playlists', 'name'], () => getPlaylists('name'));
|
||||
const { data: playlists }: any = useQuery(['playlists', 'name'], () => getPlaylists('name'), {
|
||||
refetchOnWindowFocus: false,
|
||||
});
|
||||
|
||||
const handleAddToQueue = () => {
|
||||
const entriesByRowIndexAsc = _.orderBy(multiSelect.selected, 'rowIndex', 'asc');
|
||||
|
||||
Reference in New Issue
Block a user