Skip to content

refactor: changes computer signature#59

Closed
jodarove wants to merge 1 commit intosalesforce:mainfrom
jodarove:jodarove/computed-proposal
Closed

refactor: changes computer signature#59
jodarove wants to merge 1 commit intosalesforce:mainfrom
jodarove:jodarove/computed-proposal

Conversation

@jodarove
Copy link
Copy Markdown

@jodarove jodarove commented Apr 9, 2025

Description

With #57 removing the update, we can refactor the computed.

Before this PR:

const doubleCount = computed({ count }, ({ count }) => count * 2);

After this PR:

const doubleCount = computed([count], (countValue) => countValue * 2);
// or
const doubleCount = computed([count], () => count.value * 2);

@jodarove jodarove force-pushed the jodarove/computed-proposal branch from de3d3c7 to de3a207 Compare April 9, 2025 20:00
@jodarove jodarove closed this May 9, 2025
@jodarove jodarove deleted the jodarove/computed-proposal branch May 9, 2025 19:07
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