Coder Social home page Coder Social logo

sanskarfc / gotogether Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 3.0 1.01 MB

Seamlessly connecting kindred spirits within your community, GoTogether redefines ride-sharing.

Home Page: https://go-together-psi.vercel.app

JavaScript 58.93% Python 41.07%

gotogether's People

Contributors

mihirsutariya avatar pps-19012 avatar saatvikraoiitgn avatar sanskarfc avatar

Stargazers

 avatar

Watchers

 avatar  avatar

gotogether's Issues

ChatScreen components keeps re-rendering. Fix required.

The ChatScreen.jsx component in components\ChatScreen.jsx seems to render multiple times (present in the chat and updated_chat branch). This is observed while typing characters in chat text input. For example, the following three parameters are logged multiple times while typing a message.
Due to this, chat reload and save operations are not functioning.

Code:

const ChatScreen = () => {
  const route = useRoute();
  const { members, myId, groupId } = route.params; 
  console.log("members --> ", members);
  console.log("myId --> ", myId);
  console.log("groupId --> ", groupId)

... rest of the code

Log:

 LOG  members -->  ["user_2WqDKqa1AoXl4pq7QwuDALgtLXJ", "user_2X1Jwy0RR0QVWUsPI5oqk7nPpny", "user_2WoB8ppbX4Mz8pZyH3B73X5C4WO"]
 LOG  myId -->  user_2WoB8ppbX4Mz8pZyH3B73X5C4WO
 LOG  groupId -->  276524d1-933a-4e80-9fd5-b94503e58cf0
 LOG  members -->  ["user_2WqDKqa1AoXl4pq7QwuDALgtLXJ", "user_2X1Jwy0RR0QVWUsPI5oqk7nPpny", "user_2WoB8ppbX4Mz8pZyH3B73X5C4WO"]
 LOG  myId -->  user_2WoB8ppbX4Mz8pZyH3B73X5C4WO
 LOG  groupId -->  276524d1-933a-4e80-9fd5-b94503e58cf0
 LOG  members -->  ["user_2WqDKqa1AoXl4pq7QwuDALgtLXJ", "user_2X1Jwy0RR0QVWUsPI5oqk7nPpny", "user_2WoB8ppbX4Mz8pZyH3B73X5C4WO"]
 LOG  myId -->  user_2WoB8ppbX4Mz8pZyH3B73X5C4WO
 LOG  groupId -->  276524d1-933a-4e80-9fd5-b94503e58cf0
 LOG  members -->  ["user_2WqDKqa1AoXl4pq7QwuDALgtLXJ", "user_2X1Jwy0RR0QVWUsPI5oqk7nPpny", "user_2WoB8ppbX4Mz8pZyH3B73X5C4WO"]
 LOG  myId -->  user_2WoB8ppbX4Mz8pZyH3B73X5C4WO
 LOG  groupId -->  276524d1-933a-4e80-9fd5-b94503e58cf0

This issue might be similar to the this or this or due to socket.io's internal implementation.
A possible solution might be this

Changing the chat from Flatlist to ScrollView does not affect this behavior.

To replicate this run the files in usual manner and use one of the Group Chat options or create a Group Chat if required.

Query Params with GET requests not working

While using url = http://${ipv4_address}:8080/api/reload_chat?group_id=${groupId} for fetching chats related to a group_id, it throws Network Response failed error.
However, when the query param is not passed, no such error is present.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.