mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-19 22:12:13 +00:00
initial state changed
This commit is contained in:
parent
0f5e6e6798
commit
4326f23db6
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ const DEFAULT_TYPE = 'movie';
|
|||
|
||||
const useLibrary = (urlParams) => {
|
||||
const { core } = useServices();
|
||||
const [library, setLibrary] = React.useState([[], []]);
|
||||
const [library, setLibrary] = React.useState([[], null]);
|
||||
React.useEffect(() => {
|
||||
const type = typeof urlParams.type === 'string' && urlParams.type.length > 0 ? urlParams.type : DEFAULT_TYPE;
|
||||
const onNewState = () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue