Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 hotfix: broken clip page and generate thumbnails repeated requests (#…
…847) # 😵 Post-Mortem 😵 ## Summary 1. Broken Clip Page: An added if statement caused the page to return "not found" when previewId was missing or undefined. 2. Multiple Thumbnail Requests: The page was making multiple requests to generate thumbnails for sessions, resulting in unnecessary network calls and potential performance issues. ## Impact - **Services Affected**: Broken Clip page - **User Impact**: Users no longer have access to the clip page ## Root Cause Analysis #### Issue 1: Broken Clip Page An if statement was added to the Clip page, causing it to return a "not found" page when previewId was missing in the search params or when the previewAsset function returned undefined. #### Issue 2: Multiple Thumbnail Requests The page kept making repeated requests to generate thumbnails for sessions. This was due to the lack of memoization for the session object, resulting in unnecessary network calls. ## Resolution and Recovery Remove the if statement ## Lessons Learned 1. Carefully review the impact of new conditional logic on page rendering. 2. Optimize API calls to avoid unnecessary network requests. 3. Use memoization techniques like useMemo to improve performance.
- Loading branch information