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

Rendering Errors with Custom Components and app.use(Component) in Vite Projects #513

Open
revolist opened this issue Jul 31, 2024 · 0 comments
Assignees
Labels
bug Something isn't working low Minor improvement/issue

Comments

@revolist
Copy link
Owner

revolist commented Jul 31, 2024

Description:
We’ve encountered a rendering issue with custom components when using the app.use(Component) approach in Vite-based projects. This problem is linked to updates made in #512.

Details:

  • Problem: The issue manifests when the key (${p.prop}-${p.rowIndex}) is used in custom components. Errors occur particularly when the source data is passed from outside and modified externally.
  • Affected Version: The issue appears to be related to the changes introduced in VueTemplate render repeat  #512.
  • Sandbox Example: Sandbox with Issue
  • Manual Import Solution: Switching to manual import as recommended here resolves the problem.

Current Status:

  • Regular component import works as a workaround.
  • Further investigation is ongoing regarding the app.use(Component) approach and its interaction with Vite.
  • The key (${p.prop}-${p.rowIndex}) remains essential for performance optimization and reducing redraws.

Action Items:

  1. Investigate: Continue to analyze the issue related to app.use(Component) and Vite, especially in light of VueTemplate render repeat  #512.
  2. Review: Consider manual component import as a fix.

Links:

Additional Notes:

  • Please review the sandbox example and manual import approach for potential solutions.
  • Update or provide further information as needed.

https://codesandbox.io/p/github/revolist/vue3-app-use-component--513/main?workspaceId=b937c3e5-f7f0-45a6-aa08-b9f120dcd9b0

@revolist revolist moved this to Done in RevoGrid Backlog Jul 31, 2024
@revolist revolist moved this from Done to To do in RevoGrid Backlog Jul 31, 2024
@revolist revolist self-assigned this Jul 31, 2024
@revolist revolist added bug Something isn't working low Minor improvement/issue labels Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working low Minor improvement/issue
Projects
Status: To do
Development

No branches or pull requests

1 participant