Skip to content

fix: vue3 break effector-vue - #1281

Open
movpushmov wants to merge 1 commit into
masterfrom
fix/vue3-effector
Open

movpushmov wants to merge 1 commit into
masterfrom
fix/vue3-effector

Conversation

@movpushmov

Copy link
Copy Markdown
Contributor

Conventions

@movpushmov
movpushmov requested a review from zerobias July 4, 2025 02:26
@movpushmov movpushmov added the bug Something isn't working label Jul 4, 2025
@movpushmov movpushmov self-assigned this Jul 4, 2025
@movpushmov movpushmov linked an issue Jul 4, 2025 that may be closed by this pull request
leo-millennial added a commit to leo-millennial/effector that referenced this pull request Sep 10, 2026
The plugin is part of the composition API: it provides the scope that
useUnit, useStoreMap, useVModel and useGate read. Exporting it only from
the root entry forced Vue 3 users to import from the Vue 2 entry, which
pulls in the mixin and createComponent they never run.

The composition entry stays free of a default vue import, so it also
works where the root entry is loaded by a bundler that resolves vue to
the Vue 3 build.

Adopts the change proposed in effector#1281 by movpushmov, with the typing added
to composition.d.ts so the export is visible to TypeScript users too.

Fixes effector#1131

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

effector-vue breaks on vue3 projects

1 participant