mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +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);
|
||||
};
|
||||
}, []);
|
||||
React.useEffect(() => {
|
||||
if (services.core.active) {
|
||||
services.core.transport.dispatch({
|
||||
action: 'Ctx',
|
||||
args: {
|
||||
action: 'PullAddonsFromAPI'
|
||||
}
|
||||
});
|
||||
}
|
||||
}, [initialized]);
|
||||
return (
|
||||
<React.StrictMode>
|
||||
<ServicesProvider services={services}>
|
||||
|
|
|
|||
Loading…
Reference in a new issue