client/src/pages/Group.js
// Loads initial group and starts socket listener
Loads initial group and starts socket listener
Loads initial group and starts socket listener
function initialLoadGroup(groupName) {
    API.getGroup(groupName)
      .then((res) => {
        console.log("initial load group response");
        console.log(res);
        setGroupState(res.data);
        setCurrentGroupState(res.data);
        sendGroupID(res.data._id);
        startSocketListener(res.data._id, res.data.name);
      })
      .catch((err) => console.log(err));
  }
function initialLoadGroup ( groupName ) { API . getGroup ( groupName ) . then ( ( res ) => { console . log ( "initial load group response" ) ; console . log ( res ) ; setGroupState ( res . data ) ; setCurrentGroupState ( res . data ) ; sendGroupID ( res . data . _id ) ; startSocketListener ( res . data . _id , res . data . name ) ; } ) . catch ( ( err ) => console . log ( err ) ) ; }
Loads initial group and starts socket listener
Loads initial group and starts socket listener
//console.log(groupName);