Skip to content

Conversation

@wsafight
Copy link
Contributor

This pr can change multiple operations into one operation.

@euaaaio euaaaio changed the base branch from main to next April 18, 2025 23:28
@euaaaio euaaaio requested a review from Copilot April 18, 2025 23:28
Copy link

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 aims to reduce runtime computational overhead by streamlining conditional logic in the useVModel function. The key changes include:

  • Splitting the ternary operation handling into explicit conditional branches.
  • Removing redundant conditional checks by separating the logic when a key is provided versus when it is not.

@euaaaio euaaaio merged commit 34d7a75 into nanostores:next Apr 18, 2025
0 of 3 checks passed
@euaaaio
Copy link
Member

euaaaio commented Apr 18, 2025

Released in 1.0.0. Thanks 🖤

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