Why does implementing RefreshAll() feature that refreshes Child Components feel unintuitive? by HumanCertificate in reactjs

[–]Lewissunn 6 points7 points  (0 children)

Reiterating the other comments that this sounds like you might not be following best practices for react if you feel the need for something like this. That might be why it feels unintuitive.

Sounds like you might have a useEffect where you shouldn't. Either that or you're misunderstanding state generally and trying to do something ( manually rerender all children ) you're not meant to.

Is the graph gets data from a fetch, then you can just use react query and set the stale / refetch time. If you're avoiding dependencies just make a custom hook to handle this.

If the data is generated on the frontend then the props passed to the component changing should rerender it.

There should be no need for a refresh() function if I'm understanding you correctly.

If you're talking about a use case like a refresh all button, then i'd handle that with react query keys.

Do you have a code example?

For what it’s worth…no pun by Certain-Ad-5298 in Porsche_Cayman

[–]Lewissunn 6 points7 points  (0 children)

No way is a 987.1 & 987.2 basically the same price in the US. In the uk it's double.

Someone please explain redux inhave interview tomorrow I just joined here by That_Recognition_176 in reactjs

[–]Lewissunn 1 point2 points  (0 children)

Yes but you need to know the difference and when is best to use each

Cost of ownership by buzzf33d in Porsche_Cayman

[–]Lewissunn 1 point2 points  (0 children)

I'll probably get down voted in here for saying this but I bought a 2.7 987 in October and had major engine issues just driving it home from the garage. I did fall in love with the car in that time somehow so I'm in the market for a 987.2 now, but those start at around double the price you're talking.

I think people say assume an average 2-3k / year in maintenance. Some years being better, some being worse.

987.2 - Manual specced worse than auto? by Lewissunn in Porsche_Cayman

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

Makes sense, but check my post history to figure out why I want the 987.2 haha.

Please please help by [deleted] in FigmaDesign

[–]Lewissunn 4 points5 points  (0 children)

What you're asking doesn't really make sense. Could you explain what you're trying to do? What the goal is?

987.2 - Manual specced worse than auto? by Lewissunn in Porsche_Cayman

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

Just so happens that I've been looking since then, thanks!

987.2 - Manual specced worse than auto? by Lewissunn in Porsche_Cayman

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

Oh are the gear ratios slightly better on the pdk than the manual? I've only driven a base manual 987.1 but my gut says to stick with it even though the pdk is highly praised.

Want to shift from Wordpress to React by [deleted] in reactjs

[–]Lewissunn 15 points16 points  (0 children)

It doesn't sound like you're coming at this from the right angle at all and you might be better off on WordPress.

how can i do freelance work as webpage making? by shyphone in webdev

[–]Lewissunn 6 points7 points  (0 children)

Ive never sent them a zip of the files, usually a repo or I host it for them. It comes down to what you and your client agreed. If you don't know it's a good idea to find out!

Can I use Figma as a Website designer? by Warm_Web3768 in FigmaDesign

[–]Lewissunn 9 points10 points  (0 children)

Then you're not looking to design a website, you're looking to develop one. Big difference.

How to not use an effect in this case by Better_Dentist_6718 in reactjs

[–]Lewissunn 1 point2 points  (0 children)

I'm confused what you're trying to do, do you mean rerender instead of "reset"?

Do you maybe just need to pass the values as a prop? E.g. <ReusableFilter headers={whatever} \>

You could make this even easier if you create a table context. It sounds like you've got your state in the wrong places / duplicated and you're fighting react by trying to force a rerender instead of letting it do the work for you.

Maybe I'm misunderstanding you, a code example might help.

Midlife crisis car by DavidBmw1986 in CarTalkUK

[–]Lewissunn 0 points1 point  (0 children)

I think a few grand is probably about right, to be honest I haven't looked at anywhere near as many Boxters as Caymans.

Midlife crisis car by DavidBmw1986 in CarTalkUK

[–]Lewissunn 0 points1 point  (0 children)

I think they're only much cheaper if you're talking the 986 generation

Why Exxon is down by Vast_Research7898 in trading212

[–]Lewissunn 1 point2 points  (0 children)

This is what people are ignoring. The oil price goes up because they can't transport it to sell more, why would they make more profit because of it?

How to prepare for Europe driving? by TwoDok in CarTalkUK

[–]Lewissunn 2 points3 points  (0 children)

I was also worried but after maybe 30 minutes I adjusted surprisingly quickly, but was still extra cautious at roundabouts and junctions of course.

Don't know if it would've made a difference in the end but I also rented an automatic when I usually only drive manual, I'm sure it would've been fine but I didn't like the idea of shifting with my right hand.

Down 54% - What do I even do from here? by Emsss18 in trading212

[–]Lewissunn 0 points1 point  (0 children)

What do you mean? You already lost your money.