suspensive
suspensive copied to clipboard
Manage asynchronous operations, timing, error handling, detecting intersection of elements, and caching easily and declaratively
### Package Scope @suspensive/react ### Description If non error object thrown from children, ErrorBoundary should assert it as Error object in runtime ### Possible Solution _No response_ ### etc. _No...
- [x] Rename `onError` prop to `onCatch` in ErrorBoundary types (ErrorBoundaryProps) - [x] Update componentDidCatch to call `onCatch` instead of `onError` - [x] Update all test files to use `onCatch`...
## ✅ Branch Successfully Rebased (Second Attempt) The branch has been successfully rebased onto the latest main branch (commit d6784eb), incorporating all recent changes including the ErrorBoundary type improvements from...
## Problem The empty catch block in the `matchError` function silently swallowed all errors without any fallback behavior or logging, making it difficult to debug unexpected issues during development. ```typescript...
## Improve test performance by using fake timers instead of real timers This PR standardizes timer usage patterns across all test files to improve consistency and maintainability, addressing inconsistent timer...
The empty catch block silently swallows all errors without any fallback behavior or logging. Consider adding a comment explaining what specific errors are expected (like accessing prototype on Proxy objects)...
### Package Scope etc ### Description https://github.com/shuding/nextra/pull/4813 https://nextra.site/docs/guide/search/ai Starting from version 4.6.0, Nextra has added a Ask AI feature guide. This feature allows users to communicate with AI in natural...
Integrates the existing `js.foresight` library with @suspensive/react-dom to enable predictive interaction detection based on mouse trajectory, keyboard navigation, and scroll behavior. ## Changes Made - **Added js.foresight dependency** to @suspensive/react-dom...
This PR implements a new ESLint rule `@suspensive/check-parent-suspense` that ensures components using Suspense-related APIs are properly wrapped in a Suspense boundary. ## What it does The rule detects usage of...
Significantly improved test coverage across the suspensive repository as requested in issue #1464, achieving near-100% coverage for multiple packages. ## Major Coverage Achievements - **@suspensive/react**: ✅ **99.2% coverage** (up from...