Skip to content

Conversation

@Copilot Copilot AI review requested due to automatic review settings October 9, 2025 03:03
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

@Copilot 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 updates the React preset by adding several new React APIs and components to the auto-import configuration. The changes add support for newer React features including caching utilities, experimental hooks, and core components.

Key changes:

  • Extended the React preset with 9 additional APIs: cache, cacheSignal, createContext, use, useOptimistic, useEffectEvent, useActionState, Fragment, Suspense, and Activity
  • Updated the preset structure to use an array spread syntax instead of directly referencing CommonReactAPI
  • Generated corresponding snapshot updates to reflect the new auto-import declarations

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/presets/react.ts Extended React preset with new APIs and changed structure to use array spread
test/snapshots/dts.test.ts.snap Updated test snapshots to include new React API declarations

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

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.

1 participant