Update useMovie.js

This commit is contained in:
mansoor-roeen-glitch 2021-09-13 23:56:07 +05:30 committed by GitHub
parent fbd0f57a73
commit 03246b0aa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,9 @@ export function MovieProvider(props) {
streamUrl: stream,
streamData,
setStreamData(d) {
setStreamData(p => ({...p,...d}))
setStreamData(p => {
return {...p,...d}
})
},
resetStreamData() { setStreamData(null) }
}}>