mirror of
https://github.com/movie-web/movie-web.git
synced 2025-01-11 23:49:13 +01:00
Update useMovie.js
This commit is contained in:
parent
fbd0f57a73
commit
03246b0aa7
@ -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) }
|
||||||
}}>
|
}}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user