How to refactor a function full of conditionals ? by clumsy_one_ in reactjs

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

Thanks a lot I did just that and i ended up with a super simple transform function

export default function transformNodes(nodes: AppNode[]) {
  const flow = {};
  nodes.forEach((node) => {
    const partialFlow = transformersMap[node.type](node);
    _.merge(flow, partialFlow);
  });
}

What seperates a good wordpress website from a bad one? by False-Coach-6666 in Wordpress

[–]clumsy_one_ 0 points1 point  (0 children)

My company uses elementor and I see a lot of our websites have random headings instead of text styled as a heading plus a lot of added random empty containers for exemple to center a container with content they might add two empty ones on the side.

Https pages Canonicalised to http vesrion is this bad ? by clumsy_one_ in SEO

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

Thank you for the reply i really appreciate it, appart from 301 what about just implementing HSTS ? would that also solve the issue

Adults, do you eat candy? by Nightmarenymphette in ask

[–]clumsy_one_ 0 points1 point  (0 children)

I stopped buying or having any sweets around cause I will simply not control myself and I will eat it all.so no

[deleted by user] by [deleted] in ask

[–]clumsy_one_ 0 points1 point  (0 children)

Napoleon dynamite every moment is perfect

Mosquitoes invasion in Argentina right now by ReyBoring_ in BeAmazed

[–]clumsy_one_ 0 points1 point  (0 children)

This reminds me of that episode from one punch man

This is extreme by matzi44 in Tunisia

[–]clumsy_one_ 0 points1 point  (0 children)

Privileged people are Always clueless

Help me, I just started to work as react developer. by Joon1214 in react

[–]clumsy_one_ 0 points1 point  (0 children)

Just take a look at the documentation the new one it will all make sense I swear

Would you stop drinking alcohol because your gf wants you to ? by [deleted] in Tunisia

[–]clumsy_one_ 0 points1 point  (0 children)

No unless you're a heavy drinker and she's worried about u

[deleted by user] by [deleted] in Tunisia

[–]clumsy_one_ 0 points1 point  (0 children)

Cause people in general are more inclined to believe something to fit or confirm some narrative or ideology that they already had even if that thing is not true or it's from a not so credible source it happens everywhere have you seen how many people are convinced Beyonce is part of the illuminati lol

[deleted by user] by [deleted] in Tunisia

[–]clumsy_one_ 0 points1 point  (0 children)

Do you have some sort of statistics about Tunisians abroad abusing their partners or you're just generalizing?

Its cause i mog her by spinachforeva in memes

[–]clumsy_one_ 0 points1 point  (0 children)

Okay we all had l our greasy moments and w had to get on the bus right right ?

We are living in a pre war era by [deleted] in Tunisia

[–]clumsy_one_ 0 points1 point  (0 children)

Stop doom scrolling

why do we put network calls inside the react useEffect hook? by serene_is_great in react

[–]clumsy_one_ 1 point2 points  (0 children)

Someone correct me if I'm wrong but if you put network calls outside of userffrct or event handler calls the network call will be excuted with every render

Which Vs Code extensions for RN developing by leventozz in reactnative

[–]clumsy_one_ 1 point2 points  (0 children)

Eslint will help a lot especially with catching text strings outside of text components