Skip to content

Commit

Permalink
fix(videodetail): prevents flash when navigating to movie page
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristiaanScheermeijer committed May 30, 2022
1 parent 8839d0b commit 9c320bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hooks/useContentProtection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const useContentProtection = <T>(
enabled: !!id && enabled && (!signingEnabled || !!token),
placeholderData: placeholderData,
retry: type === 'media',
keepPreviousData: type === 'media',
});

return {
Expand Down

0 comments on commit 9c320bc

Please sign in to comment.