Elwin's Blog

an activist who likes to think

Month: June 2021

front cover

The Fundamental Of Coding Interview Question part 4 (Javascript)

Posted on

System Design and Scalability

this section is more related to the back-end than the front-end, but it's good to know from a broader view:

  • Communication: it's more important in the system design than dealing with a specific coding algorithm question. because most of the time, a lot of details won't be covered in the problem description, so the candidate should ...
Continue reading
front cover

Avoid triggering multiple times on a useEffect when changing multiple state

Posted on

For example:

You have a useEffect that watches the event_id and the date_range, they are separate states from useState.

when one of them changes, it will re-query a list of events.

The user can change the event_id from a list of events, the user can also change the date_range by using the date picker.

Somehow, you got a new request that when an active event_id is changed, the...

Continue reading