mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 03:22:11 +00:00
pull addons on initialize
This commit is contained in:
parent
9c6e83c6da
commit
b64ff05320
1 changed files with 10 additions and 0 deletions
|
|
@ -85,6 +85,16 @@ const App = () => {
|
||||||
services.chromecast.off('stateChanged', onChromecastStateChange);
|
services.chromecast.off('stateChanged', onChromecastStateChange);
|
||||||
};
|
};
|
||||||
}, []);
|
}, []);
|
||||||
|
React.useEffect(() => {
|
||||||
|
if (services.core.active) {
|
||||||
|
services.core.transport.dispatch({
|
||||||
|
action: 'Ctx',
|
||||||
|
args: {
|
||||||
|
action: 'PullAddonsFromAPI'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}, [initialized]);
|
||||||
return (
|
return (
|
||||||
<React.StrictMode>
|
<React.StrictMode>
|
||||||
<ServicesProvider services={services}>
|
<ServicesProvider services={services}>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue