petermlm

u/petermlm


r/reactjs•

I have the following components:

  • A buttons component that has the buttons: Last month, last day, last hour
  • A set of data display components which show some data from an endpoint each
  • A main component that has the buttons and the data display components has children.

Currently, each data display component will fetch their data in their respective componentDidMount function. This is done by calling an endpoint without query parameters.

What I want to do is: I want to click in a button, and make all of the data display components fetch data from the endpoint again, but this time with a query parameter like: range=month.

I've added a callback function via prop to the buttons compo

12

r/languagelearning•

Basically I speak fluent Portuguese and English, PT being my native language. I can change between these two languages quiet easily. For example, I can server as an interpreter between them, or I can be speaking in PT with a friend and simply change to EN at any moment and carry a regular conversation.

For two years and a half I started learning German. Nowadays I can already have a conversation in German, although my vocabulary is somewhat limited. But I've encountered a problem:

When I begin a conversation in German, it is extremely hard. I don't remember many words, my pronunciation is terrible, and I stutter a lot. It always takes a few moments before I can get into speaking the langua

13


r/techsupport•

I have the following setup:

  • PC with ADM graphics card
  • PS4
  • Single monitor

I would like to use both the PC and PS4 with the monitor. (Audio for both devices is independent)

To do this I have an HDMI switch. I have the monitor connected to the output port of the switch, and both devices connected to ports 1 and 2. But I have the following two problems:

  • While playing on the PS4 (with the PC on) I get random blackouts.
  • Switching back to the PC I get a black screen. I had to reboot my PC, with it connected directly to the monitor, to get an image back.

My questions are:

  • Should I not have this setup?
  • What might be the cause of the blackouts?
13