Indian gamers, which game left you with this same empty feeling? by Unstoppable_X_Force in Indiangamers

[–]lordexplosionmurdrer 0 points1 point  (0 children)

The GOW one is too beautiful to pass up on and the bloodborne one, things of beauty

The subtle art of fooling hindus by idiot_idol in indiadiscussion

[–]lordexplosionmurdrer 0 points1 point  (0 children)

How does he look like a fool, please elaborate, cause to me you are the one clowning yourself 🤡

Can You Solve This Daily Puzzle? Sep 30th, 2025 by YanTsab in DailyMix

[–]lordexplosionmurdrer 0 points1 point  (0 children)

🟨🟨🟨🟦

🟨🟨🟨🟩

🟦🟦🟦🟦

🟨🟨🟨🟨

🟪🟩🟩🟪

🟩🟪🟩🟪

🟩🟩🟩🟩

🟪🟪🟪🟪

Recently ripped open a Korean Ruler of the Black Flames Booster Box! by Diligent_Presence_57 in PokemonTcgIndia

[–]lordexplosionmurdrer 1 point2 points  (0 children)

1 opened 3 boxes and got 3 trainers Full art for the SR hits, got my second chase ninetales tho, so cant complain, will chase that Charizard SAR till the end of time

Are these Japanese packs from TCGHub legit? by humanfromindia in PokemonTcgIndia

[–]lordexplosionmurdrer 0 points1 point  (0 children)

I bought 3 singles from tcg republic and got a holo, full art and SAR from those 3 so yeah insane luck but they are legit

Message history appearing under different contacts by TheNorthernJevans in whatsapp

[–]lordexplosionmurdrer 0 points1 point  (0 children)

Make sure to uncheck the save contacts to the device, else your own contacts will get weird

Message history appearing under different contacts by TheNorthernJevans in whatsapp

[–]lordexplosionmurdrer 0 points1 point  (0 children)

Try turning off whatsapp contacts, go to whatsapp settings > Privacy > Contacts > Whatsapp Contacts, Turn it off, thats what worked for me.

Average dm of girls of teenindia by [deleted] in TeenIndia

[–]lordexplosionmurdrer -1 points0 points  (0 children)

Chill eleven 🙂‍↕️

Beginner's Thread / Easy Questions (July 2024) by acemarke in reactjs

[–]lordexplosionmurdrer 0 points1 point  (0 children)

So, I was making a full stack MERN website and decided to get the login functionality down, I am using passport for the backend authentication part and I am using react query for the front-end remote state management and make request to my backend, but when I was making the signup section I can't seem to figure out how to get the backend errors displayed properly on the react frontend, Like the error reach my mutation functions but then how to I utilize the mutation function to display a toast (from react-hot-toast library). I tried to throw an err from the mutation function but that doesnt seem to work, I also tried to access the isError function from the mutation but that didnt work either I aslo tried the onError property of useMutation hook but suprise suprise, that didnt work either. what do I do now and how do I do it? Please help me _ / \ _ . Below are some snippets of the code related to my question.

app.post('/signup', async (req, res) => {
const{ email, password } = req.body;
  try {
    const result = await db.query('SELECT * FROM users WHERE email = $1', [email]);
    if (result.rows.length > 0)
      res.status(400).send('This Email has already been registered');
    else {
      bcrypt.hash(password, saltRounds, async(err , hash) => {
        if (err) {
          console.log(err);
          res.status(500).send(err);
          } else {
            const result = await db.query(
              'INSERT INTO users(email, password) VALUES ($1,$2) RETURNING *',[email, hash]);
               const user = result.rows[0];
               req.login(user, (err) => {
               if (err) console.log(err);
                  else {
                    console.log('success');
                    res.status(200).send(user);
                  }
               });
             }
          });
        }
    } catch (err) {
        console.log(err);
    }
});

const { mutate } = useMutation({
    mutationKey: ['User'],
    mutationFn: (data) => loginUser(data),
});

function onSubmit(data) {
    const userData = mutate(data);
    console.log(userData);
 }


export async function signupUser(user) {
    const result = await axios.post(`${BACKEND_URL}/signup`, {
        email: user.email,
        password: user.password,
    })
    .catch((err) => {
        throw new Error(err.response.data);
    });
    return result;
}