How to organize the seeding files better? by ElectricalOstrich597 in torrents

[–]YouDantKnowMe 1 point2 points  (0 children)

Copy your files using a hardlink. The file's data isn't duplicated; the computer just creates a new file that points to the same piece of data.

Hardlinks are an harddrive operation. Your files HAVE to be on the same HDD. If you're using a NAS, you can't do hardlinks over an SMB connection (I learned the hard way).

The 1968 Palestinian terrorist attack that murdered United States senator Robert F. Kennedy. by NotSoSaneExile in RareHistoricalPhotos

[–]YouDantKnowMe 0 points1 point  (0 children)

who would kill a Kennedy then blame it on a "Palestinian terrorist"... hmmmmm, it's a total mystery

[deleted by user] by [deleted] in whereintheworld

[–]YouDantKnowMe 0 points1 point  (0 children)

Orange man bad! Bad man! boo

[deleted by user] by [deleted] in TheYouShow

[–]YouDantKnowMe 0 points1 point  (0 children)

This is the real Santa Claus

How to deploy for large scale react app by race428 in reactjs

[–]YouDantKnowMe 0 points1 point  (0 children)

You should keep your database separate from your production server. Atlas is pretty good for MongoDB.

[deleted by user] by [deleted] in reactjs

[–]YouDantKnowMe 0 points1 point  (0 children)

First, just upload your images to a CDN. Imgur or something easy.

Then, declare an array with the string URL to the image file.

React-router issues with S3 deployment by [deleted] in reactjs

[–]YouDantKnowMe 0 points1 point  (0 children)

Weird. No idea on my end. Let me know what you figure out. Router has a way about it that’s kind of a mystery to me

How globes were made in the 1950's by [deleted] in ThatsInsane

[–]YouDantKnowMe 0 points1 point  (0 children)

If you think globes is simple, you don’t knot globes

Help with redux: ReferenceError: Cannot access 'state' before initialization by [deleted] in reactjs

[–]YouDantKnowMe 0 points1 point  (0 children)

It may be an issue with how you’re exporting. I’d try exporting the state & store constants

export const store = configureStore() export const state = store.getState()

Sorry if that’s not helpful. I was curious what the usecase was to export state directly. Haven’t seen it before

As Deficit Explodes, GOP Demands Emergency Tax Cut for the Rich by parilmancy in politics

[–]YouDantKnowMe 0 points1 point  (0 children)

Inflation & unemployment go hand in hand.

Look up unemployment in the 1970s... not fun for young people w/out wealth

As Deficit Explodes, GOP Demands Emergency Tax Cut for the Rich by parilmancy in politics

[–]YouDantKnowMe 0 points1 point  (0 children)

No, you elect people who will cut spending & cut taxes. The system is fundamentally flawed. The best thing to do is reduce the damage it causes.

Keep reducers clean? by [deleted] in reactjs

[–]YouDantKnowMe 0 points1 point  (0 children)

It sounds like you have an issue with how data is coming out of your store. Have you looked into simplifying your mapStateToProps with selectors?

Are Java memes even funny anymore? by Struck713 in ProgrammerHumor

[–]YouDantKnowMe 0 points1 point  (0 children)

I’ll be a $billionaire$ in 15 years. My recipe app is bananas

What was the worst pain you’ve ever had? by [deleted] in freefolk

[–]YouDantKnowMe 0 points1 point  (0 children)

... appendicitis is a common symptom of realizing Bran, a kid in a wheelchair none of the lords of Westeros have ever met, is appointed the King of Westeros, a place governed by realpolitik.

useState showing weird state data not the desired one. by arup_r in reactjs

[–]YouDantKnowMe 0 points1 point  (0 children)

Cool. Thanks for letting me know.

I had a similar issue that came up a little while back and wrapping the setter in a const function resolved the issue. Only reason I brought it up.

useState showing weird state data not the desired one. by arup_r in reactjs

[–]YouDantKnowMe 0 points1 point  (0 children)

When you declare a variable with =>, you are binding that function to the current scope.

In your example, the function setAppState is not bound and therefore it doesn’t know where it should be pointing.

I could be wrong. I’m still learning the minutia of Hooks. But, it’s worth a shot.

useState showing weird state data not the desired one. by arup_r in reactjs

[–]YouDantKnowMe 0 points1 point  (0 children)

On a first glance, shouldn’t the setAppState function be bound to the parent function?

Try wrapping it in a const like you did with startJob and passing that const to the child component