Copilot
Copilot
# Overview Addresses issue requesting improved documentation to make @suspensive/react easier to understand and use. The existing "Why need to use?" page had minimal content (3 bullet points). Users needed...
## Overview This PR adds a new `errorBoundaryProps` utility function to `@suspensive/react`, similar to `@tanstack/react-query`'s `queryOptions` helper. This utility simplifies the creation of reusable ErrorBoundary configurations with proper TypeScript type...
- [x] Explore repository structure and understand ErrorBoundary implementation - [x] Verify current behavior: non-Error objects (null, string, number, object) are NOT converted to Error instances - [x] Update `getDerivedStateFromError`...
- [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...
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...