Skip to content

Conversation

@DanielSchiavini
Copy link
Collaborator

  • return proper promises to usePageInterval callbacks
  • throttle calls to setFormValues to make sure they aren't called too often

@vercel
Copy link

vercel bot commented Oct 31, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
curve-dapp Ready Ready Preview Comment Nov 7, 2025 3:57pm
curve-dapp-storybook Ready Ready Preview Comment Nov 7, 2025 3:57pm

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses the removal of floating promises (void expressions) throughout the codebase by implementing proper error handling. The main changes include:

  • Creates a new errorFallback utility function for centralized error handling
  • Removes void operators from promise calls and adds .catch(errorFallback) instead
  • Updates function signatures to properly return Promise<void> where needed
  • Applies throttling to frequently-called functions using a new useThrottle hook
  • Refactors some Promise handling to use Promise.all() for better performance
  • Simplifies conditional rendering patterns
  • Minor CI workflow improvements

Reviewed Changes

Copilot reviewed 129 out of 130 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
packages/curve-ui-kit/src/utils/error.util.ts New error handler utility with ignored error patterns
packages/curve-ui-kit/src/utils/timers.ts Adds useThrottle hook for throttling callbacks
packages/curve-ui-kit/src/themes/design/0_primitives.ts Renames FormDebounce to FormThrottle with updated timing
packages/curve-ui-kit/src/hooks/useLocalStorage.ts Adds shouldShowErrors helper function
packages/curve-ui-kit/src/hooks/useDebounce.ts Updates default timing constant reference
Multiple store files Replace void with .catch(errorFallback) pattern
Multiple component files Update function signatures and add error handling
.github/workflows/ci.yaml Improves artifact naming and configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants