mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 03:22:11 +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(() => {
|
const initStreamingServer = React.useCallback(() => {
|
||||||
return core.transport.getState('streaming_server');
|
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({
|
return useModelState({
|
||||||
model: 'streaming_server',
|
model: 'streaming_server',
|
||||||
init: initStreamingServer,
|
init: initStreamingServer
|
||||||
action: loadStreamingServerAction
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue