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...