Judy
Judy
KPCKevin Powell - Community
Created by Judy on 6/5/2024 in #front-end
React useEffect problem
I found the problem. LOL silly me used an uppercase in the wrong place. 🤣🤣🤣🤣🤣🤣🤣🤣🤣
16 replies
KPCKevin Powell - Community
Created by Judy on 6/5/2024 in #front-end
React useEffect problem
This is what the entire component looks like
16 replies
KPCKevin Powell - Community
Created by Judy on 6/5/2024 in #front-end
React useEffect problem




16 replies
KPCKevin Powell - Community
Created by Judy on 6/5/2024 in #front-end
React useEffect problem
~~~
16 replies
KPCKevin Powell - Community
Created by Judy on 6/5/2024 in #front-end
React useEffect problem
ok No problem. Atleast i learnt how to use code blocks😊
16 replies
KPCKevin Powell - Community
Created by Judy on 6/5/2024 in #front-end
React useEffect problem
Is this better?
16 replies
KPCKevin Powell - Community
Created by Judy on 6/5/2024 in #front-end
React useEffect problem
useEffect(() => {
const fetchPins = async () => {
setLoading(true);
setError(null);

try {
let query;

if (text === "created") {
console.log("Running userCreatedPinsQuery");
query = userCreatedPinsQuery(userId);
} else {
console.log("Running userSavedPinsQuery");
query = userSavedPinsQuery(userId);
}

console.log("Generated query:", query);

const data = await client.fetch(query);

console.log("Fetched data:", data);

setPins(data);
} catch (err) {
console.error("Error fetching pins:", err);
setError(err);
} finally {
setLoading(false);
}
};

fetchPins();
console.log(`Fetching pins for text: ${text} and userId: ${userId}`);
}, [text, userId]);
useEffect(() => {
const fetchPins = async () => {
setLoading(true);
setError(null);

try {
let query;

if (text === "created") {
console.log("Running userCreatedPinsQuery");
query = userCreatedPinsQuery(userId);
} else {
console.log("Running userSavedPinsQuery");
query = userSavedPinsQuery(userId);
}

console.log("Generated query:", query);

const data = await client.fetch(query);

console.log("Fetched data:", data);

setPins(data);
} catch (err) {
console.error("Error fetching pins:", err);
setError(err);
} finally {
setLoading(false);
}
};

fetchPins();
console.log(`Fetching pins for text: ${text} and userId: ${userId}`);
}, [text, userId]);
16 replies
KPCKevin Powell - Community
Created by Judy on 6/5/2024 in #front-end
React useEffect problem
You mean i should send it in this form. Or just pictures or how?
16 replies
KPCKevin Powell - Community
Created by IAM on 2/9/2024 in #front-end
can help me i have no idea this html
JAVASCRIPT
79 replies
KPCKevin Powell - Community
Created by IAM on 2/9/2024 in #front-end
can help me i have no idea this html
This is the JS portion of the HTML page not HTML it self
79 replies
KPCKevin Powell - Community
Created by Judy on 10/25/2023 in #os-and-tools
VS CODE NOT RESPONDING ERROR
Oh ok. I'll have a look at it. Thanks for the idea
3 replies
KPCKevin Powell - Community
Created by Judy on 10/25/2023 in #front-end
VS CODE ISSUES WITH FORMAT ON SAVE
I Will check it out
6 replies
KPCKevin Powell - Community
Created by Judy on 10/25/2023 in #front-end
VS CODE ISSUES WITH FORMAT ON SAVE
Ok sure
6 replies
KPCKevin Powell - Community
Created by Boeroe on 10/18/2023 in #front-end
Header has a space, how to remove it.
Use pixels if you want to add a specific height
28 replies
KPCKevin Powell - Community
Created by Boeroe on 10/18/2023 in #front-end
Header has a space, how to remove it.
In your header, remove the height of 20%... It is not doing anything in your css
28 replies
KPCKevin Powell - Community
Created by Boeroe on 10/18/2023 in #front-end
Header has a space, how to remove it.
Or Shortcut, add a gap property to your nav list where you have the display: flex;
28 replies
KPCKevin Powell - Community
Created by Boeroe on 10/18/2023 in #front-end
Header has a space, how to remove it.
You can use the margin-inline property to space your nav-list but you should use the :not-lastchild selector so you won't add it to the last element
28 replies
KPCKevin Powell - Community
Created by Boeroe on 10/18/2023 in #front-end
Header has a space, how to remove it.
I think that is your problem
28 replies
KPCKevin Powell - Community
Created by Boeroe on 10/18/2023 in #front-end
Header has a space, how to remove it.
You have a padding of 3rem in your .nav-list li
28 replies
KPCKevin Powell - Community
Created by Judy on 9/19/2023 in #front-end
Stop form from sending when validation fails.
You are amazing
5 replies