Skip to content

Conversation

@wattanx
Copy link
Collaborator

@wattanx wattanx commented Feb 2, 2025

πŸ”— Linked issue

resolves: #1091

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

wrapper.element returned by mountSuspended returns the element of NuxtRoot, so use a proxy to return the element of the target component.

},
})

for (const key of ['props'] as const) {
Copy link
Collaborator Author

@wattanx wattanx Feb 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am using an array so that other methods can also be added.
However, I think isVisible does not need to be proxied. (html and classes might be okay to proxy.

@wattanx wattanx marked this pull request as ready for review February 2, 2025 14:37
@wattanx wattanx requested a review from danielroe as a code owner February 2, 2025 14:37
Copy link
Member

@danielroe danielroe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you! ❀️

@danielroe danielroe merged commit fb9b1ae into main Feb 20, 2025
4 checks passed
@danielroe danielroe deleted the fix/wrapper-proxy branch February 20, 2025 16:21
@github-actions github-actions bot mentioned this pull request Feb 20, 2025
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.

wrapper.element is not reactive for mountSuspended vs. mount

3 participants