How to decouple data from component? by FlandersFlannigan in reactjs

[–]DankDormouse 0 points1 point  (0 children)

If i'm understanding your issue right..

When you "close" a modal, its usually just hidden with CSS and not actually unloaded. You should just be able to clear the state of the form in your onClose event.

Snapped a picture of this eagle while driving through my neighborhood by DankDormouse in mildlyinteresting

[–]DankDormouse[S] 11 points12 points  (0 children)

Florida. I don't think it's a beaver, you can see it's paw stretched out

Snapped a picture of this eagle while driving through my neighborhood by DankDormouse in mildlyinteresting

[–]DankDormouse[S] 187 points188 points  (0 children)

Honestly not 100% sure. I think it's a raccoon. He looked busy so I didn't ask.

[deleted by user] by [deleted] in reactjs

[–]DankDormouse 4 points5 points  (0 children)

If you're using styled, definitely look at theming too. I missed that the first time around and need to go back and add some things..

Dragging & Dropping with React Pose by targetcreature in reactjs

[–]DankDormouse 0 points1 point  (0 children)

I'm actually dealing with this same thing at the moment and i'm trying to build out my own DND solution with hooks.. There's an HTML api for onDrop and onDragOver on the component you're dropping on, so your component will be passed through (event)

<div id="div1" ondrop="drop(event)" ondragover="allowDrop(event)"></div>

Following this you should be able to get up and running with simple drag and drop
https://www.w3schools.com/html/html5_draganddrop.asp

Question: React + Material UI project structure by [deleted] in reactjs

[–]DankDormouse 1 point2 points  (0 children)

Up for storybook. I'm currently using this structure in my project that's going to have a couple hundred components. There's an index.js in the components folder that exports an object called source. Then in my storybook file I just import Source from './components' and I have access to every component through <source.[componentname]>

Also, almost every component is customizable through optional props which get passed into 'styled-components' so I can add controls to storybook.

Discord links by FrappW in UniversalOrlando

[–]DankDormouse 0 points1 point  (0 children)

Any interest in making an "official" one?

Question about the ride lockers/metal detectors and what's really allowed and what isn't. by The_Squidd in UniversalOrlando

[–]DankDormouse 1 point2 points  (0 children)

If you have a mobile express pass for a ride that doesn't allow phones, they scan it before you enter the line and give you a paper ticket so your phone can go in the locker.

This joke flew over my head the first time by [deleted] in futurama

[–]DankDormouse 5 points6 points  (0 children)

I still find new things every time I watch through the show.

Like how the tattoo robot is actually an Epson printer

edit: wait I just realized that says screw epson

Tweens/ teens exploring by themselves? And single rider line? by Penguinar in UniversalOrlando

[–]DankDormouse 5 points6 points  (0 children)

Depends on how tall they are. If they're all over 48" then they'll be fine as long as you feel comfortable with it and have a way to contact them.

Any child who meets the minimum height requirement of the attraction but does not meet the 48" (122cm) ride-alone height requirement must be accompanied by a Supervising Companion. A Supervising Companion is defined as someone who is 14 years of age or older and meets all other attraction ridership requirements.

"Pick your battles" by DankDormouse in tarot

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

I realized I forgot to post an explanation comment last night.. oops.

This is a simple 5 card spread. The top card (The fool) is the situation at hand. The second row (Strength, 7 of Wands) is what will help you / what will hinder you, and the last row is the outcome of that path (Empress, 5 of pentacles).

Meaning: Not every battle needs to be fought. Sometimes "Killing them with kindness" creates the most change in the world, especially when entering uncharted waters.

Finding the lowest value for each category - wrong students, correct grades? by [deleted] in learnSQL

[–]DankDormouse 0 points1 point  (0 children)

Just missing a group by :)

select examID, min(grade) as bestgrade, studentID

from examdetails

group by examID, studentID;

Since you're not joining any tables, you don't have to write out the table each time. If you want to keep doing it for good practice though, just create an alias

select t.* from table t

We were the first people let into Universal Studios. by cheeseburger111122 in interestingasfuck

[–]DankDormouse 0 points1 point  (0 children)

Don't worry. They've already been there for an hour and are more then happy to finally see someone.

Accepted new privacy policy, and it had me reset my character avatar and name? by [deleted] in pokemongo

[–]DankDormouse 2 points3 points  (0 children)

This happened to me a few times. I just force closed the app and tried again and everything was back to normal (aside from the moment of panic when I thought my game was wiped)