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

Fix: [SlotComponent] Lifecycle hook won't be removed in Vue 3.5 #274 #432

Merged
merged 3 commits into from
Feb 3, 2025

Conversation

kikuomax
Copy link
Collaborator

@kikuomax kikuomax commented Feb 1, 2025

Proposed Changes

  • Fixes the issue that Table, and Tabs caused memory leaks on Vue 3.5.
    • SlotComponent that Table, and Tabs internally use gave up the tricky code that caused a memory leak on Vue 3.5. The removed code programmatically added an update hook to the component specified to the component prop, but Vue 3.5 no longer provided a way to remove the update hook. As far as I tested, the update hook was unnecessary, and I decided to remove the code. I also removed test cases which became obsolete by this change.

Removes the `event` prop, and all the tricks to programmatically add /
remove an event listener to / from the underlying Vue component. As far
as I tested, there is no need to explicitly call `$forceUpdate` when the
underlying Vue component is updated.
Removes meaningless tests from `src/utils/SlotComponent.spec.ts`. They
became obsolete because the `event` prop, and the related tricks were
removed from `SlotComponent`.
@kikuomax kikuomax requested a review from wesdevpro February 1, 2025 14:53
@wesdevpro
Copy link

@kikuomax is there any documentation that needs to be removed from the doc website?

@kikuomax
Copy link
Collaborator Author

kikuomax commented Feb 3, 2025

@kikuomax is there any documentation that needs to be removed from the doc website?

@wesdevpro No, it is an internal component. And the removed functionality was not open to users.

@kikuomax kikuomax merged commit 41dea10 into ntohq:dev Feb 3, 2025
18 checks passed
@kikuomax kikuomax deleted the drop-slot-component-update-hook branch February 3, 2025 00:28
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.

[SlotComponent] Lifecycle hook won't be removed in the future release of Vue
2 participants