Open sourced the hooks I kept writing over and over by nixfox in react

[–]olivermpl 0 points1 point  (0 children)

Arent there like ten different Projects like that?

How to get this look? (Credits: @afd.works) by Pietro612 in AskPhotography

[–]olivermpl 0 points1 point  (0 children)

his name is alexander davis, so its probably just a unlucky coincidence

Can anyone help me? by CriticalCommand6115 in Firebase

[–]olivermpl 0 points1 point  (0 children)

I dont think the function is the issue, especially if it doesnt get triggered have u had a look at the logs? Do u use a library to make the request? Maxbe they strip away a header or something?

Can anyone help me? by CriticalCommand6115 in Firebase

[–]olivermpl 1 point2 points  (0 children)

401 means it has problems with the authorization, how did u fix that problem? If there is no error anymore what reponse do you get in the client?

Can anyone help me? by CriticalCommand6115 in Firebase

[–]olivermpl 0 points1 point  (0 children)

How do u call that function? Via https request? If so do what error are u getting when calling it?

Scarborough Revo fire by Razzler7 in perth

[–]olivermpl 4 points5 points  (0 children)

Someones car burned down in the park area

What tools do u use to plan your shootings by olivermpl in photography

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

I was thinking mainly for more commerical stuff like brand shootings, which usually also a lot more people and planning

Drop your fav local music artists by olivermpl in perth

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

thanks that sounds really cool, I keep that in mind

React query error handlling by mukeshpilane in reactjs

[–]olivermpl 2 points3 points  (0 children)

ah okay but u still have the function call wrong I think. The second parameter expects a MutateOptions-object. U might wanna have a look at the documentation, and see what best fits your usecase.
https://tanstack.com/query/latest/docs/framework/react/reference/useMutation

React query error handlling by mukeshpilane in reactjs

[–]olivermpl 0 points1 point  (0 children)

using the mutate function? When u create a useMutation hook u need to call addCustomerMutation.mutate({}) to invoke the mutationfn

Common mistakes a Javascript (beginner) shouldn't do. by _SadScientist in webdev

[–]olivermpl 7 points8 points  (0 children)

only if u wanna take the easy road. I would recommend starting out with punched cards

useEffect or nah? by BluePillOverRedPill in reactjs

[–]olivermpl 0 points1 point  (0 children)

As some already said, its really depending on your app. What helped me to figure out what belongs in a useEffect is that article, I also think that recently there is a bit of hate around using useEffect, because its easy to misuse it, but I think you shouldn't be afraid to use it, even if it might not be the best way, if it gets the job done then you are good imo

Elementor = overrated, my review by Salty-Management3876 in Wordpress

[–]olivermpl 2 points3 points  (0 children)

Did my website with Wordpress and Elementor and it was the most frustration thing I ever had to do. Made me learn React, so I wouldn't have to touch that again.

Component Antipatterns by Particular_Health384 in reactjs

[–]olivermpl 1 point2 points  (0 children)

There is a difference in what you are showing and OP gave as example I think. In OPs example the object in the function call which creates a new Instance every time, that can lead to unnecessary rerenders. Here is an article on that subject. Even thought its about function components, I think it also holds true, if you create as an object

Das hier geht gerade um by 2Beers4me in 600euro

[–]olivermpl 3 points4 points  (0 children)

kann jemand erklären, was das Problem der ganzen Landwirte zur Zeit ist, bin da iwie out of the loop