Skip to content

Commit

Permalink
fix(hooks): fix useEffect infinite loop in SubscribeCollection hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbutt committed Apr 24, 2022
1 parent 5785650 commit bdedbca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/hooks/useCrestronSubscribeAnalogCollection/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function useCrestronSubscribeAnalogCollection(
return () => {
unsubscribeAll();
};
}, [signalNames]);
}, []);

return state;
}
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useCrestronSubscribeDigitalCollection/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function useCrestronSubscribeDigitalCollection(
return () => {
unsubscribeAll();
};
}, [signalNames]);
}, []);

return state;
}
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useCrestronSubscribeSerialCollection/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function useCrestronSubscribeSerialCollection(
return () => {
unsubscribeAll();
};
}, [signalNames]);
}, []);

return state;
}
Expand Down

0 comments on commit bdedbca

Please sign in to comment.