mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-16 05:36:00 +02:00
use placeholderData instead of initialData for detail routes
This commit is contained in:
@@ -242,8 +242,7 @@ const PlaylistDetailSongListRoute = () => {
|
||||
|
||||
const detailQuery = useQuery({
|
||||
...playlistsQueries.detail({ query: { id: playlistId }, serverId: server?.id }),
|
||||
initialData: location.state?.item,
|
||||
staleTime: 0,
|
||||
placeholderData: location.state?.item,
|
||||
});
|
||||
const createPlaylistMutation = useCreatePlaylist({});
|
||||
const deletePlaylistMutation = useDeletePlaylist({});
|
||||
|
||||
Reference in New Issue
Block a user