1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +01:00

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, streamUrl: stream,
streamData, streamData,
setStreamData(d) { setStreamData(d) {
setStreamData(p => ({...p,...d})) setStreamData(p => {
return {...p,...d}
})
}, },
resetStreamData() { setStreamData(null) } resetStreamData() { setStreamData(null) }
}}> }}>