Closed cenavarro closed 3 months ago
[!IMPORTANT]
Review skipped
Auto reviews are limited to specific labels.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
The recent update to the FwbAccordionPanel.vue
component involves removing the onUnmounted
lifecycle hook, which previously deleted a panel from the accordionState
based on the panelId
. This change simplifies the component's lifecycle management and may affect how the application handles the state of unmounted accordion panels.
File Path | Change Summary |
---|---|
src/components/FwbAccordion/...Panel.vue | Removed the onUnmounted lifecycle hook that deleted a panel from accordionState using panelId |
In the land of code where panels do reside,
A change has come, a shift in the tide.
No longer do we clear on unmount's call,
Panels stay remembered, standing tall.
With a hop and a skip, our code's now light,
Simplified states, everything feels just right. 🐰✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Name | Link |
---|---|
Latest commit | ae672c1cddae901f72fb35b9ac0fe2e034d2fb3d |
Latest deploy log | https://app.netlify.com/sites/sensational-seahorse-8635f8/deploys/669568de022f7d00087b1f87 |
Deploy Preview | https://deploy-preview-303--sensational-seahorse-8635f8.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Very nice catch. Thank you!
Nice catch! I have the same problem, when will they be available in the new version?
@nhantrandev96
I'm planning to make a release on Friday. Hopefully we'll merge few more things until then ;)
@Sqrcz Thank you very much, excited about the next release!
https://github.com/themesberg/flowbite-vue/issues/294
The issue seems to be that when
onUnmounted
is called theaccordtionState
has already been deleted by this onBeforeUnmount useAccordionState callback so this was raising an error and if the state has already been deleted, no need to delete it here too.Summary by CodeRabbit
onUnmounted
lifecycle hook from accordion panels to streamline state management.