Trigger a UI refresh when the scanner finds changes.

Closes #1025
This commit is contained in:
Deluan
2021-06-09 21:02:20 -04:00
parent cb6aa49439
commit 7f85ecd515
14 changed files with 110 additions and 41 deletions
+2
View File
@@ -18,6 +18,7 @@ import {
SongTitleField,
SongSimpleList,
RatingField,
useResourceRefresh,
} from '../common'
import { useDispatch } from 'react-redux'
import { makeStyles } from '@material-ui/core/styles'
@@ -71,6 +72,7 @@ const SongList = (props) => {
const dispatch = useDispatch()
const isXsmall = useMediaQuery((theme) => theme.breakpoints.down('xs'))
const isDesktop = useMediaQuery((theme) => theme.breakpoints.up('md'))
useResourceRefresh('song')
const handleRowClick = (id, basePath, record) => {
dispatch(setTrack(record))