Skip to content
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

motion component applied expired styles after component updated #202

Closed
ZhouY11 opened this issue Jun 18, 2024 · 1 comment
Closed

motion component applied expired styles after component updated #202

ZhouY11 opened this issue Jun 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ZhouY11
Copy link
Contributor

ZhouY11 commented Jun 18, 2024

System info

System(Stackblitz Website Config):
OS: Linux 5.0 undefined
CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Memory: 0 Bytes / 0 Bytes
Shell: 1.0 - /bin/jsh
Binaries:
Node: 18.20.3 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 10.2.3 - /usr/local/bin/npm
pnpm: 8.15.6 - /usr/local/bin/pnpm
NpmPackages:
@vueuse/core: ^7.6.2 => 7.6.2
@vueuse/motion: ^2.2.3 => 2.2.3
vite: ^5.3.1 => 5.3.1
vue: ^3.2.25 => 3.2.31

Reproduction

Please open Stackblitz code

Describe the bug

Vue reapplies all styles every render, include style properties and calculated initially styles get reapplied every render.
It caused the component to apply the wrong style after triggering the update.

屏幕截图 2024-06-18 152142
屏幕截图 2024-06-18 152551

Additional context

No response

Logs

No response

@BobbieGoede BobbieGoede added bug Something isn't working and removed pending triage labels Jun 22, 2024
BobbieGoede added a commit to ZhouY11/motion that referenced this issue Jun 22, 2024
BobbieGoede added a commit to ZhouY11/motion that referenced this issue Jun 22, 2024
@BobbieGoede
Copy link
Member

Resolved by #202

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

No branches or pull requests

2 participants