mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-28 21:18:47 +00:00
instant reload of ss not neaded
This commit is contained in:
parent
83cdf9ee59
commit
68b60e6b57
1 changed files with 1 additions and 15 deletions
|
|
@ -9,23 +9,9 @@ const useStreamingServer = () => {
|
|||
const initStreamingServer = React.useCallback(() => {
|
||||
return core.transport.getState('streaming_server');
|
||||
}, []);
|
||||
const loadStreamingServerAction = React.useMemo(() => {
|
||||
const streamingServer = core.transport.getState('streaming_server');
|
||||
if (streamingServer.selected === null) {
|
||||
return {
|
||||
action: 'StreamingServer',
|
||||
args: {
|
||||
action: 'Reload'
|
||||
}
|
||||
};
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}, []);
|
||||
return useModelState({
|
||||
model: 'streaming_server',
|
||||
init: initStreamingServer,
|
||||
action: loadStreamingServerAction
|
||||
init: initStreamingServer
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue