import export configurator WIP

This commit is contained in:
Jan Prochazka
2020-06-04 16:20:13 +02:00
parent 86cd0c9459
commit 35edad85c4
8 changed files with 345 additions and 5 deletions

View File

@@ -58,6 +58,9 @@ export default function useFetch({
}, [...indicators]);
React.useEffect(() => {
if (reloadTrigger && !socket) {
console.error('Socket not available, reloadTrigger not planned');
}
if (reloadTrigger && socket) {
for (const item of getAsArray(reloadTrigger)) {
socket.on(item, handleReload);