Skip to content

refactor(reactivity): extract isRef to shared #11202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

ferferga
Copy link
Contributor

@ferferga ferferga commented Jun 23, 2024

After the merge of #7306, I noticed that isRef is redeclared in shared because shared can't have dependencies (didn't thought about that during the reviewing, sorry!). However, reactivity has shared as a dependency.

I think it makes more sense to have a single implementation in shared (and re-export from reactivity) for better tree-shaking and maintainability

@ferferga ferferga marked this pull request as draft June 23, 2024 11:19
@ferferga ferferga marked this pull request as ready for review June 23, 2024 11:32
@ferferga ferferga force-pushed the extract-is-ref branch 2 times, most recently from ad8f7ca to 391b91a Compare June 23, 2024 13:58
@yyx990803
Copy link
Member

The core logic of isRef should live in @vue/reactivity. The duplication is ok.

@yyx990803 yyx990803 closed this Jun 28, 2024
@ferferga ferferga deleted the extract-is-ref branch January 12, 2025 14:41
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