-
Notifications
You must be signed in to change notification settings - Fork 120
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
Error in console when leaving a page with a chart #115
Comments
Adding to this, I also see this issue when using wire:navigate when there is a nested chart component in a view. |
@DenisD3D I'm getting the same issue, Would you happen to have any idea how to solve it? |
No sorry, I think it's best to use a non volt component |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When navigating from a page with a chart to another page, some error appear in the console (see screenshot). Tracking the source seems to be a resize event. Is the chart properly destroy when switching page ?
I'm using Livewire Volt (class based). That means there is no
render
function and so i'm creating the charts in thewith
function.To Reproduce
From a page with a chart, navigate to another page
Expected behavior
No error in the console
Screenshots
Resulting errors in the console
Additional context
Minimal Volt component for reproduction:
test.blade.php
Solution Ideas
Destroying the chart before leaving the page / unregistering the events
The text was updated successfully, but these errors were encountered: