app/javascripts/components/ActionCable.js
Function ActionCable
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const ActionCable = (props) => {
const dispatch = useDispatch()
useEffect(() => {
const cable = actioncable.createConsumer()
Function received
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const received = (data) => {
const result = humps.camelizeKeys(data)
switch (result.type) {
case 'SET_RETROSPECTIVE':
dispatch(actions.global.setRetrospective({ retrospective: result.retrospective }))