Skip to content

Commit

Permalink
Clear unfriendly props
Browse files Browse the repository at this point in the history
  • Loading branch information
weotch committed Nov 30, 2023
1 parent 74ff3e5 commit b583c30
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions packages/react/src/LazyVideo/LazyVideoServer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,18 @@ export default function LazyVideo(

// Render client component
return (
<LazyVideoClient
{...props}
{...{ srcUrl, mediaSrcs }}
<LazyVideoClient {...{
...props,

// Remove client-unfriendly props
videoLoader: undefined,
src: undefined,
sourceMedia: undefined,

// Add client-friendly props
srcUrl,
mediaSrcs,
}}
/>
)
}
Expand Down

0 comments on commit b583c30

Please sign in to comment.