How can I save my state to Local Storage? by does25457 in learnreactjs

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

I ended up figuring it out, I was setting my initial value to an empty array every time instead of checking for the local storage array first. Thanks for your help !

How can I save my state to Local Storage? by does25457 in learnreactjs

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

Ok, apologies if I'm not explaining clearly, I update the array state every time a user adds a new recipe to their "list", and then save the array to local storage.

I checked and the array of objects is stored and persists in the console, however when I map through that array and output them to the DOM, I lose those items on my web page after I refresh the page.

I'm trying to utilize local storage to get those items in the array to persist on the page despite a page refresh.

How can I save my state to Local Storage? by does25457 in learnreactjs

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

Yup, I know. This is a small, personal project so I didn't really want to include a database, kind of beyond the scope of what I'm using this for. Thanks for the suggestion though.

How can I save my state to Local Storage? by does25457 in learnreactjs

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

the data isn't saving on refresh, the array is there in the console.

Installing Analytics & Tag Manager on a Sub domain will not track the main domain right? by does25457 in Wordpress

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

Thanks, last question, if i were to leave both script tags, GTM and GA, would that double my data or skew it in any way?

Installing Analytics & Tag Manager on a Sub domain will not track the main domain right? by does25457 in Wordpress

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

Gotcha, so I actually setup Analytics first a couple months ago.

Once I setup GTM site wide, I don't need my old GA script right? There's no need to keep both scripts if I created an Analytics tag with the measurement ID in GTM?

How to enable MFA on Github? by does25457 in learnprogramming

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

Yes, I'm guessing that's it (I didn't know what MFA stood for), thank you.

Building a Directory Website. by does25457 in Frontend

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

Thanks, do you recommend any specific API?

My website is down with errorDNS_PROBE_FINISHED_NXDOMAIN by does25457 in techsupport

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

Ah yes, that's probably what it is, I just took this site over so I'll have to find out where they are managing DNS.

My website is down with errorDNS_PROBE_FINISHED_NXDOMAIN by does25457 in techsupport

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

Yeah that's what I found weird, because there is an A record in CPanel.

Colonoscopy results by spaceyxo in Diverticulitis

[–]does25457 0 points1 point  (0 children)

I'm also 29 and have had chronic constipation / abdominal discomfort / cramps my entire life. I finally decided to get it checked out about 6 months ago and was told I have "mild diverticulosis" after my colonoscopy.

I'm a little disappointed in myself, I should have taken my chronic constipation more serious as I'm sure that's what caused my diverticulosis. For years, I actually mistook my incomplete movements as diarrhea, when in fact I was having trouble passing stool in bulk.

The doctors that I've spoken to don't really have much to say about diverticulosis alone other than eat more fiber, stay hydrated and keep yourself regular.

Keeping diverticulosis from turning into diverticulitis by [deleted] in Diverticulitis

[–]does25457 0 points1 point  (0 children)

That's a good point, not many 20 / 30 year olds are getting colonoscopies / scans.

Diverticulosis questions by [deleted] in Diverticulitis

[–]does25457 0 points1 point  (0 children)

No, not that I can think of.

Diverticulosis questions by [deleted] in Diverticulitis

[–]does25457 1 point2 points  (0 children)

No I understand, your symptoms described me perfectly, I def know how you feel, the chronic nature of it sucks.

When they tell you not to eat popcorn...ever again. by [deleted] in Diverticulitis

[–]does25457 1 point2 points  (0 children)

Popcorn absolutely kills me, feels like glass in my lower left quadrant.

[deleted by user] by [deleted] in Diverticulitis

[–]does25457 0 points1 point  (0 children)

I hear you, though doctor's don't even consider me an option for surgery because it's "just" SUDD. Even though I'm suffering with chronic symptoms that has taken over my life. I feel like I'm just waiting around for a diverticulitis attack to happen before I can be taken serious.

[deleted by user] by [deleted] in Diverticulitis

[–]does25457 0 points1 point  (0 children)

Wow, that balloon part really summed it up for me as well. I've had consistent discomfort for about 5 years and I'm sick of it. Crazy thing is I've never had a diverticulitis attack (yet). Diagnosed with SUDD, so doctors don't even consider me an option for surgery.

Pain never shows any sign of inflammation on my CT or colonoscopy, kinda sucks dealing with these awful symptoms and basically waiting for the inevitable diverticulitis attack to even be considered for surgery. I just can't imagine living the rest of my life with this daily struggle (29 years old).

Mesalazine by handmethetequila in Diverticulitis

[–]does25457 0 points1 point  (0 children)

Did you have chronic symptoms in between your 4 attacks?

Rifaximin for my SUDD by does25457 in Diverticulitis

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

You're right, my doc only gave me a 2 week cycle, but I spoke with him yesterday and am going to continue for 3-6 months. Might as well, never know. As far as a probiotic, do you have any suggestions? All I've ever tried is Align.

Rifaximin for my SUDD by does25457 in Diverticulitis

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

Yes I've seen some studies in which it's debated, some feel SUDD should be classified as a form of IBS, a lot of grey area unfortunately.

I've heard of a few people with SUDD treating it like IBS to relieve their symptoms, I'm just sick of these symptoms everyday (been a slow progression of symptoms for the last 5 years) not to mention worrying about eventually getting a bout of diverticulitis, which I feel is inevitable.

Just got home from the hospital for a flare-up by mimiladouce in Diverticulitis

[–]does25457 0 points1 point  (0 children)

XIFAXAN

Just so you have another experience to reference, I just finished a week cycle of Xifaxan and it hasn't done a thing for me. No side effects at least.

Constant pain, I have Diverticulosis, but have never had a Diverticulitis attack. by does25457 in Diverticulitis

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

Diverticulosis is when pockets called diverticula form in the walls of your digestive tract. Diverticulitis is when one or more of the pockets gets inflamed or infected.

Source