Closed reborn2135 closed 1 month ago
Latest commit: 41cedcd309544eabd8395555964113e553e8be94
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Summary
This PR optimizes the Switch component in the shadcn example by replacing meta.value with control.value. This change aims to improve performance by reducing unnecessary re-renders.
Changes Made
Updated the Switch component to use control.value instead of meta.value Modified the relevant code snippet as follows: