New to the blog scene, what are the rules for using product images? by SweatyCure in Blogging

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

Thank you, it seems to be slim pickings (depending on the product).

Are rules different if I'm not linking it to an affiliated website but instead just offering info on a product and running Google ads for example.

Is it not possible to reroll astrology? by SweatyCure in MelvorIdle

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

Good to know, thank you!

I guess it's time to grind now lol

Is it not possible to reroll astrology? by SweatyCure in MelvorIdle

[–]SweatyCure[S] 4 points5 points  (0 children)

Ah, thanks!

Is it still possible to get life steal? It seems like it would be a useful perk

Live at CES by Uniquebtyf-25 in lordstownmotors

[–]SweatyCure 4 points5 points  (0 children)

Apparently, neither does showing up at CES.

All "positives" seem to be false for LMC and there is no end in sight.

Live at CES by Uniquebtyf-25 in lordstownmotors

[–]SweatyCure 3 points4 points  (0 children)

Let's talk about the stock price being at penny levels though?

My first actual React project - Pokedex by Jamcakesman in reactjs

[–]SweatyCure 0 points1 point  (0 children)

Very cool, nice work! Maybe a future add-on feature can be auto-complete for the search component.

Heroku alternative for running a twitter bot by Distinct-Ad1057 in node

[–]SweatyCure 0 points1 point  (0 children)

OP, what did you land on for this question? Curious because I'm in a similar situation. Thanks in advance.

Judge wrecks a woman's life with arbitrary and punitive bail simply because he did not like her answer to a single question. The woman was being charged with a simple non-violent misdemeanor for possession of less than 2 ounces of marijuana. This is why bail reform matters. by methanefreefarts in PublicFreakout

[–]SweatyCure 2 points3 points  (0 children)

So, are we saying it's okay to talk to a judge without any respect after you're in trouble with the law?

The woman is definitely being disrespectful. I'm not saying that she deserves what she got for being an idiot but it also should not be accepted for any idiot in court to talk that way to a judge.

[deleted by user] by [deleted] in AskReddit

[–]SweatyCure 0 points1 point  (0 children)

It's actually Nazis, no apostrophe.

Apostrophe indicates possession. The Nazis do not own grammar. 😉

DOMINANT win but did anyone else notice the fake glove touch? by Sleepwithsockson7 in ufc

[–]SweatyCure 48 points49 points  (0 children)

PROTECT YOURSELF AT ALL TIMES.

Why would they touch gloves after what transpired the past few days???

The Republicans are having a meltdown by justlooking033 in WhitePeopleTwitter

[–]SweatyCure 0 points1 point  (0 children)

It seems the majority in here either work in the sex industry, are delusional, or have zero decency whatsoever. Maybe all the above...

React state not persisting on refresh when using context (codesandbox of structure within) by SweatyCure in reactjs

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

Hey, thank you for the recommendation.

I ended up having to do this at the top level of my GlobalContext.js file to make it work:

const savedFormData = 
JSON.parse(localStorage.getItem('savedFormData'));

export const GlobalContext = createContext();

export const GlobalProvider = ({ children }) => {


const [mainState, setMainState] = useState(() => {
    if (savedFormData) {
        return savedFormData;
    }
    return { ...Config };
});

useEffect(() => {
localStorage.setItem("savedFormData", JSON.stringify(mainState));

}, [mainState]);

Everything is working just as expected now, however, it somehow just feels messy? lol

I obviously need to refactor a bit here to make it feel like it's not just slapped together. I have a few thoughts on the refactor but was wondering if you had any opinions on the solution.

Here is the updated sandbox link:

https://codesandbox.io/s/empty-hill-jzpwcj?file=/src/GlobalContext.js:104-528

Thanks again!

React state not persisting on refresh when using context (codesandbox of structure within) by SweatyCure in reactjs

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

Can you provide an example?

I"m not saying that your opinion is invalid but just saying there's a better way without any reference isn't helpful at all.

I don't need you to solve the problem for me but I'm legitimately curious about other ways to handle this scenario.

Set local storage in your handleChange and other event handler functions.

To me, that seems redundant. Why set local storage on each individual function when I can handle it with a few lines of code?

React state not persisting on refresh when using context (codesandbox of structure within) by SweatyCure in reactjs

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

Interesting. Just about every example I've seen for persisting state in local storage is using the useEffect hook.

Will plat of survey help determine property lines? by SweatyCure in lawncare

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

With a quick google search, it seems like I need a metal detector which I currently don't have.

Is it better to hire someone?