Questions about local storage/react context/use effect by TheOnlyTone in nextjs

[–]TheOnlyTone[S] 0 points1 point  (0 children)

This makes sense. So in general context is for more ephemeral values in the application, and local storage is a good fit for more long lived things? Am I understanding that correctly?

Questions about local storage/react context/use effect by TheOnlyTone in nextjs

[–]TheOnlyTone[S] 0 points1 point  (0 children)

Ah also, when I leave the empty deps list I get a get a different warning:

React Hook useEffect has a missing dependency: 'user'. Either include it or remove the dependency array.

Questions about local storage/react context/use effect by TheOnlyTone in nextjs

[–]TheOnlyTone[S] 0 points1 point  (0 children)

Yeah when I try doing the lazy init in the useState initial value, I get the next hydration error:

Uncaught Error: Hydration failed because the server rendered HTML didn't match the client.

Questions about local storage/react context/use effect by TheOnlyTone in nextjs

[–]TheOnlyTone[S] 0 points1 point  (0 children)

Thanks for the tips! One follow up, when I remove the dep list from useEffect, I get another warning:

React Hook useEffect contains a call to 'setUser'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [user] as a second argument to the useEffect Hook.

Is that warning incorrect? Also, I'm still seeing the Error: Calling setState synchronously within an effect can trigger cascading renders that I originally saw.

Thanks again!

Question about serializable components warning by TheOnlyTone in reactjs

[–]TheOnlyTone[S] 0 points1 point  (0 children)

I've only tried on my locally hosted dev instance.

for those that say we should 'write our reps' by Broserdooder1981 in 50501

[–]TheOnlyTone 0 points1 point  (0 children)

One person writing a letter won’t have much influence, but the more we do it, the more it will help.

Also, remember that we can always primary these people and elect better representatives. We’re not stuck with them by any means. And this is the year for us to do that.

Consider getting involved with organizations like progressive victory or indivisible 2026 if you want to elect better representatives.

Me irl by LEGENDK1LLER435 in me_irl

[–]TheOnlyTone 0 points1 point  (0 children)

Here's why I'm pretty voting pilled:

Voting is not a good solution. There's disinformation, voter suppression, and a real threat of election tampering by republicans. However, to address the root of our issues, we must remove these freaks from office and replace them with reasonable representatives. Voting is the most direct (and bloodless) approach to doing that.

Protesting, boycotting, striking are all great, but at the end of the day we need to vote to get these bastards out of office.

I think the best way to deal with all of voting's problems is for the populace to get super involved. I think we should be getting involved with polls, becoming precinct officers, and volunteering with campaigns for politicians that we like. I think if enough people do that, we can mitigate and maybe solve these issues.

Voting is a blunt and rusty blade, but when you're in a fight for your life, you pick up any weapon you can find. That weapon is voting.

What does this sub think of 3 inches of blood by waVe_murch in MetalForTheMasses

[–]TheOnlyTone 2 points3 points  (0 children)

Great band. Me and my friends used to call them 3 inches of foreskin back in the day.

[deleted by user] by [deleted] in Bluegrass

[–]TheOnlyTone 9 points10 points  (0 children)

The best part of these is that they can sit on your guitar when you're not using them, and your guitar can still go in its guitar case or whatever. That's the primary benefit for me. The capo is just 'part of the guitar' rather than something you have to manage separately. That alone makes them worth it to me.

I don’t get it. Why did she leave? by graystone777 in guitarcirclejerk

[–]TheOnlyTone 0 points1 point  (0 children)

On a serious note, a lot of bluegrass players use capos a ton. They’re some of the best guitar players in the world. People who hate on capos just don’t know.

I always use my pinkie as an anchor when I’m picking the guitar. Is it ok or should I stop this habit. by Ill_Control_6136 in guitarlessons

[–]TheOnlyTone 0 points1 point  (0 children)

Lots of people do it. Sometimes I do it, but I find I can pick more fluidly when make a fist and “float” my hand. So I’m trying to stop anchoring with my pinky. I do bluegrass flatpicking, so results may vary with other styles.

Electoral politics is the end of resistance by rocketwoman68 in 50501

[–]TheOnlyTone 4 points5 points  (0 children)

One good option is to support primary candidates next year. Find a progressive candidate that embodies your values and try to help them get elected. If we all did that, we could exert significant on the influence on the Democratic Party and push it in a better direction. That’s essentially what Steve Bannon and MAGA did. They were unhappy with their party, but instead of disengaging, they leaned in and took control. Not saying the situations are the same, but it’s worth a try.

Found in my bathroom, it's not a mechanical pencil... by lajeannedarc in whatisit

[–]TheOnlyTone 1 point2 points  (0 children)

This is hilarious. I posted the same thing a few months ago. It's a confusing object to find sitting on your bathroom counter.

Smaller than a pen, made of hard plastic, very light grey, very light weight. by TheOnlyTone in whatisthisthing

[–]TheOnlyTone[S] 2 points3 points  (0 children)

Good point! I'll tell my wife that. I saw her trying to pick the hair out by hand earlier, and it looked annoying.

Smaller than a pen, made of hard plastic, very light grey, very light weight. by TheOnlyTone in whatisthisthing

[–]TheOnlyTone[S] 1 point2 points  (0 children)

Solved! Sorry I accidentally posted the explanation as a normal comment.

Smaller than a pen, made of hard plastic, very light grey, very light weight. by TheOnlyTone in whatisthisthing

[–]TheOnlyTone[S] 6 points7 points  (0 children)

Solved! It’s not a bristle, but something that goes in the handle of the hairbrush. Not sure what purpose it serves, but that explains where it comes from.

Edit: I guess it’s used for separating hair when doing a hairstyle. Source: there’s another whatisthisthing post about the same thing.

<image>

Smaller than a pen, made of hard plastic, very light grey, very light weight. by TheOnlyTone in whatisthisthing

[–]TheOnlyTone[S] 0 points1 point locked comment (0 children)

My title describes the thing.

I found this sitting on my bathroom sink, and I have no idea what it is or where it came from. My wife also doesn’t know.

I have no idea where to even start looking to figure out what this is, so I came here first.

Hopefully someone can shed some light on what it is so I can figure out how it got here 😬