Skip to content

Commit

Permalink
Merge pull request #73 from jwplayer/fix/flash-when-navigating-to-mov…
Browse files Browse the repository at this point in the history
…ie-page

Fix / prevent flash when navigating to movie page
  • Loading branch information
ChristiaanScheermeijer authored May 31, 2022
2 parents 8839d0b + 9c320bc commit c7478e1
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 c7478e1

Please sign in to comment.