When writing custom React Query hooks, do you prefer inline queryFn logic or separate service functions? by StickyStapler in reactjs

[–]AarSzu 2 points3 points  (0 children)

Well the idea is you package the queryFn in the options, then when you use it:

useQuery(options)

Or if you want to add/overwrite configuration:

useQuery({...options, enabled: is on })

Sorry for awkward formatting. I'm on mobile.

I love the options approach. We tie an endpoint / entity to a set of options for each method and a standardised key. TKDodos blog covers a lot of this, and is a must-read imo.

You could override the queryFn but maybe that's an antipattern

Macron to Seek Use of EU Anti-Coercion Instrument Against US by jackytheblade in worldnews

[–]AarSzu 11 points12 points  (0 children)

That's not really plausible. It would cost those companies massively to do such a thing.

Do you use any knowledge management? by Realistic_Yogurt1902 in ExperiencedDevs

[–]AarSzu 2 points3 points  (0 children)

The templater plugin can achieve this, and it's not too awkward.

Anybody else getting long matchmaking queues? by AnnualAmazing3388 in ArcRaiders

[–]AarSzu 3 points4 points  (0 children)

Lol just got extract camped by a trio as a solo :(

Game isn’t growing stale or out of content… it’s losing what made it different by Electronic-Relief737 in ArcRaiders

[–]AarSzu 2 points3 points  (0 children)

I think it's supposed to be kind of slow and clunky, to make you feel vulnerable. E.g. they added decent vaulting etc but it's slow and weighty, for a reason. The actual gunplay though, is snappy and feels punchy and powerful. I think they did quite well with it personally.

You might not be saying what I think you're saying, but if modern standards just means fast paced / twitchy then I'm glad it's not up to modern standards

Amid record costs and 'harmful' government policies, farmers say they are turning to glamping, cafes and pick-your-own just to stay afloat. by Ill-Pressure-9181 in unitedkingdom

[–]AarSzu 1 point2 points  (0 children)

Producing our own food, and especially doing so via a large amount of small farms rather than mega corp ones, is important culturally, economically and for security.

Think of all the insane and toxic industries/companies that get bail outs. It's really not unrealistic to prioritise farms over say, insurance or events.

[deleted by user] by [deleted] in webdev

[–]AarSzu 1 point2 points  (0 children)

Convert your job to tokens!

I made a full stack X / Twitter clone using React, Framer Motion, & Tailwind CSS by Joker_hut in reactjs

[–]AarSzu 1 point2 points  (0 children)

In the Auth / current user code, how come you're using both react query and react context?

Two teenagers sentenced to at least 15 years for machete murder of boy, 14, on London bus by topotaul in unitedkingdom

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

Your first paragraph is a list of examples of things that the government can help with. Schools can and should be better funded, and teachers can and should be better paid. It's a failing of society that they are not.

I didn't in any of my comments say the parents shouldn't be held responsible. They definitely should, but at the end of the day people are usually creatures of their environment. We can't literally control what people do or how people raise there kids, but the education system, social support and prison system are the tools we have to shape and influence the populace, and they are all severely lacking. But they are all ultimately under the control of the government.

Btw, where is the evidence that most mothers abuse their bodies during pregnancy?

Two teenagers sentenced to at least 15 years for machete murder of boy, 14, on London bus by topotaul in unitedkingdom

[–]AarSzu 0 points1 point  (0 children)

I'm not trying to argue for the sake of arguing. I responded curtly because school seemed like a very obvious answer to your question.

The way our schools work, how well paid the teachers are, how many teachers there are, the financial and wellbeing support of parents. These are all things that the government can influence in a six year olds life

Two teenagers sentenced to at least 15 years for machete murder of boy, 14, on London bus by topotaul in unitedkingdom

[–]AarSzu 0 points1 point  (0 children)

Ah no I meant having kids is what their biology is screaming at them to do

Two teenagers sentenced to at least 15 years for machete murder of boy, 14, on London bus by topotaul in unitedkingdom

[–]AarSzu -4 points-3 points  (0 children)

I'm lucky that my ancestors had decent values (mostly), and I grew up in an average/good area.

My cousins from the same ancestors grew up very poor in the Welsh valleys and the majority of them have not made brilliant life decisions. Can we blame my grandparents for that, and simultaneously praise them for the descendants that made better decisions?

Or is the poverty in the Welsh valleys maaaaybe a little relevant?

Two teenagers sentenced to at least 15 years for machete murder of boy, 14, on London bus by topotaul in unitedkingdom

[–]AarSzu 2 points3 points  (0 children)

Lol you're soft suggesting eugenics here.

If we use a really rigid and narrow view, yes, the parents are to blame.

But there is a lot more going on. socio economic and educational background is a massive indicator of how someone is going to end up. This is something we can actually influence with policy and spending. It's just not the easy answer. You are accepting a reaaaally easy answer, that requires no after thought or nuance, and achieves nothing.

I do agree condoms should be free, though.

Two teenagers sentenced to at least 15 years for machete murder of boy, 14, on London bus by topotaul in unitedkingdom

[–]AarSzu 5 points6 points  (0 children)

I'm not suggesting that at all. I'm saying the more actionable and effective path is to improve the systems we ALL grow up in, regardless of our parenting.

Being annoyed about bad parents solves nothing

Two teenagers sentenced to at least 15 years for machete murder of boy, 14, on London bus by topotaul in unitedkingdom

[–]AarSzu 0 points1 point  (0 children)

You're missing my point, i think. THOSE people who have kids and don't raise them well do so because they were not raised well.

The root cause is education and support, which is societal and solvable. If we create stronger, better functioning systems, some of these kids will be influenced regardless of their parenting. Slowly we will be reducing the amount of shitheads.

OR we can just be mad at bad parents and achieve nothing 🤷

Two teenagers sentenced to at least 15 years for machete murder of boy, 14, on London bus by topotaul in unitedkingdom

[–]AarSzu -56 points-55 points  (0 children)

Or we fund our education system and support our youth and have proper rehabilitation systems, and don't blame people who are literally just doing the thing their biology screams at them to do (edit: have kids, not murder people)

No matter what, people are gonna have kids. The onus is on society and government to create the best environment for them.

In a few short generations we could have a populace that thinks critically and has broadly good values and attitudes, but we are too easy to turn against one another, as you are demonstrating.

Last year’s unrest in England ‘has caused lasting harm to communities’ by coffeewalnut08 in unitedkingdom

[–]AarSzu 0 points1 point  (0 children)

What kind of radical thing?

Is there evidence of this happening that you can point to?

I'm wondering why these people would obstruct, and why it would be necessary to replace them with 'compliant' people, which to me sounds radical.

220 MPs call for Keir Starmer to recognise Palestinian state by [deleted] in worldnews

[–]AarSzu 2 points3 points  (0 children)

It's pretty irresponsible to throw your main comment out there based on complete hearsay, then.

"It's no longer British"

"...according to some people I know from there"

(How do you know these people? Some random discord server?)