mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-20 14:37:43 +01:00
Update useMovie.js
This commit is contained in:
parent
fbd0f57a73
commit
03246b0aa7
1 changed files with 3 additions and 1 deletions
|
@ -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) }
|
||||
}}>
|
||||
|
|
Loading…
Reference in a new issue