mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 11:42:05 +00:00
init streaming server settings fixed
This commit is contained in:
parent
a89e04192f
commit
42f461201d
1 changed files with 4 additions and 5 deletions
|
|
@ -2,13 +2,12 @@ const React = require('react');
|
||||||
const { useServices } = require('stremio/services');
|
const { useServices } = require('stremio/services');
|
||||||
const { useModelState } = require('stremio/common');
|
const { useModelState } = require('stremio/common');
|
||||||
|
|
||||||
const initStreamingServer = () => ({
|
|
||||||
selected: null,
|
|
||||||
settings: null
|
|
||||||
});
|
|
||||||
|
|
||||||
const useStreamingServer = () => {
|
const useStreamingServer = () => {
|
||||||
const { core } = useServices();
|
const { core } = useServices();
|
||||||
|
const initStreamingServer = React.useMemo(() => {
|
||||||
|
const streamingServer = core.getState('streaming_server');
|
||||||
|
return streamingServer;
|
||||||
|
}, []);
|
||||||
const loadStreamingServerAction = React.useMemo(() => {
|
const loadStreamingServerAction = React.useMemo(() => {
|
||||||
const streamingServer = core.getState('streaming_server');
|
const streamingServer = core.getState('streaming_server');
|
||||||
if (streamingServer.selected === null) {
|
if (streamingServer.selected === null) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue