Skip to content

Excessive requests are made when changing weeks (for someday events) #456

@tyler-dane

Description

@tyler-dane

Where did this happen?

Local code with an up-to-date main branch, Production app

Expected Behavior

When changing weeks, there should only be two network requests made:

  1. Getting grid events (all day and timed)
  2. Getting sidebar events (AKA someday events)

Current Behavior

When changing weeks, there are three sidebar network requests for someday events

3-someday-requests.mov

Steps to Reproduce

  1. Open Network tab
  2. Navigate to a new week
  3. Notice: three requests are send for the someday events

Possible Solution

Identify the root cause using React Profiler and other debugging tools. It'll likely be related to props or hooks. Then, make the necessary refactors.

Context

This significantly slows down the app and leads to a poor UX when navigating weeks frequently

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions