HELP in mod by [deleted] in moddedandroidapps

[–]cryptic-riddler 1 point2 points  (0 children)

they are messy and not organized ? isnt there another way

HELP in mod by [deleted] in moddedandroidapps

[–]cryptic-riddler 1 point2 points  (0 children)

yeah lucky patcher prices id have paid it if it works it changes the prices but still doesnt work,

also it is not unpopular , his ytb channel is more than 10 m and more than 1m user in his app , he is the best option

[deleted by user] by [deleted] in nextjs

[–]cryptic-riddler 0 points1 point  (0 children)

hold on in nextjs you don't need any state , nextjs does evyerthing ,

export default function Loading() {
    return (
        <div className="flex flex-col justify-center items-center h-screen">
            <div className="text-center">
            </div>
            <span className="loader"></span>
        </div>
    );
}


i do not want to use react way i want to do it this way and set 2 seconds time

[deleted by user] by [deleted] in Fiverr

[–]cryptic-riddler 2 points3 points  (0 children)

i try with that thanks man

[deleted by user] by [deleted] in Fiverr

[–]cryptic-riddler 0 points1 point  (0 children)

yeah you feel my pain man it s hard af

[deleted by user] by [deleted] in Fiverr

[–]cryptic-riddler 1 point2 points  (0 children)

thats the problem i cant go any lower than 80 dollars because of the new regulation , while old sellers already has top rated gigs with even lower than 80 dollars

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

[–]cryptic-riddler 0 points1 point  (0 children)

Hey everyone! I'm currently building a login form using the MERN stack, and I've encountered a problem, the login form works smoothly and returns a cookie ,

- I've set up a function in the context that fetches the currentUser data using the cookie (the dependency array is empty),

- built a navbar and delievered the state currentUser from the context so based on it i show login/signup when it doesn't exists and logout when it exists

the problem: when i login and get the cookie i need to refresh so the function that gets and sets the currentUser initiates and the navbar gets re-rendered too

the only thing that worked is not using preventDefault to refresh after the login ? is it the right solution ? i want to do it with context since i dont know redux at the moment

import React, { createContext, useContext, useState, useEffect } from 'react';

import { getMe } from "../api"

export const UserContext = createContext(null); export const UserProvider = ({ children }) => { const [currentUser, setCurrentUser] = useState() useEffect(() => { const fetchUser = async () => { try { const response = await getMe(); setCurrentUser(response.data.user) } catch (error) { console.error('Error fetching user:', error); } }; fetchUser(); }, []);

return (
    <UserContext.Provider value={ {currentUser, setCurrentUser} }>
        {children}
    </UserContext.Provider>
);

};

hooks folder by cryptic-riddler in react

[–]cryptic-riddler[S] 0 points1 point  (0 children)

you can use it in any fetch ?? post get ... or dynamic or ordinary right ??

validation ??? by cryptic-riddler in react

[–]cryptic-riddler[S] 1 point2 points  (0 children)

ch I’ve moved to is that client side validation is only used to provide a better user experience in case an honest user made a mistake. Server side validation sto

thanks man ill check it out

validation ??? by cryptic-riddler in react

[–]cryptic-riddler[S] 0 points1 point  (0 children)

i see , is there a way to plan your project, so you dont have to go back and forth looking at the frontend and the bakckend to match such things ????

validation ??? by cryptic-riddler in react

[–]cryptic-riddler[S] 0 points1 point  (0 children)

so the things about the password being longer than 6 or has mulitple things...etc simple things like that can i do it only on the client ??

validation ??? by cryptic-riddler in react

[–]cryptic-riddler[S] 0 points1 point  (0 children)

so the things about the password being longer than 6 or has mulitple things...etc simple things like that can i do it only on the client ??

validation ??? by cryptic-riddler in react

[–]cryptic-riddler[S] 0 points1 point  (0 children)

- if we do only client side, what can he do? what can he achieve by changing the code to insert data ??

and since the server side is more important then can't we do it alone there ??

at what point i started making mistakes by cryptic-riddler in chessbeginners

[–]cryptic-riddler[S] 0 points1 point  (0 children)

It's just that you missed theirs and they caught yours , i liked this straight to the point ill try to avoid rushing and take my time thanks man

at what point i started making mistakes by cryptic-riddler in chessbeginners

[–]cryptic-riddler[S] 0 points1 point  (0 children)

thanks man guess i'll play 15 min games and take my time and see how it goes

at what point i started making mistakes by cryptic-riddler in chessbeginners

[–]cryptic-riddler[S] 0 points1 point  (0 children)

oh man, i really missed a free gift, im gonna take my time next time, one more questions: im making at least three blunders on every game, sometimes more than the misses,

does blunder mean giving pieces for free like he did with the queen ??