mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-24 04:31:51 +01:00
Update useMovie.js
This commit is contained in:
parent
fbd0f57a73
commit
03246b0aa7
@ -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 New Issue
Block a user