mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
update meta resources when resource ref changed
This commit is contained in:
parent
3f95d0361a
commit
e61c44e76f
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ const useSelectableResource = (resourceRef, resources) => {
|
|||
}, []);
|
||||
React.useEffect(() => {
|
||||
dispatch({ type: 'resources-changed', resourceRef, resources });
|
||||
}, [resources]);
|
||||
}, [resourceRef, resources]);
|
||||
return [state.resourceRef, state.resources, state.selected.resource, selectResource];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue