Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
hw87AlenBolatov
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Болатов Ален
hw87AlenBolatov
Commits
edf4286f
Commit
edf4286f
authored
Mar 26, 2023
by
Болатов Ален
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added intervals to call dispatch every second
parent
b5b5a0ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
Albums.tsx
frontend/src/containers/Albums.tsx
+3
-1
Tracks.tsx
frontend/src/containers/Tracks.tsx
+3
-1
No files found.
frontend/src/containers/Albums.tsx
View file @
edf4286f
...
...
@@ -13,7 +13,9 @@ const Albums: React.FunctionComponent = (): React.ReactElement => {
const
navigate
=
useNavigate
();
useEffect
(()
=>
{
dispatch
(
getAlbumsByQueryParams
(
artist
!
));
setInterval
(()
=>
{
dispatch
(
getAlbumsByQueryParams
(
artist
!
));
},
1000
);
},
[
dispatch
]);
return
(
...
...
frontend/src/containers/Tracks.tsx
View file @
edf4286f
...
...
@@ -11,7 +11,9 @@ const Tracks = () => {
const
album
=
params
.
get
(
'album'
);
useEffect
(()
=>
{
dispatch
(
getTracksByQuery
(
album
!
));
setInterval
(()
=>
{
dispatch
(
getTracksByQuery
(
album
!
));
},
1000
);
},
[
dispatch
]);
return
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment