You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The remove dataview event, removes the dataview from the client element, but it does not stop fetching data when there is the dataChanged event.
You need to use the disable() method to stop fetching data from the dataview after remove it from the client.
This leads to confusion when using these methods on CARTO.js to deal with dataviews.
Steps to Reproduce
Create a map with one dataview that contains the dataChanged event
Apply the removeDataview method, the dataview is removed from the client, but it still keeps fetching data when you move around the map or change the zoom level.
If you add the disable() method, then the dataview stops being updated when the map position or zoom changes.
Expected result
The dataview should stop being updated once it is removed from the client using the removeDataview() method.
There should be no need to add the disable() method after applying the removeDataview() method.
Context
The remove dataview event, removes the dataview from the client element, but it does not stop fetching data when there is the
dataChanged
event.You need to use the disable() method to stop fetching data from the dataview after remove it from the client.
This leads to confusion when using these methods on CARTO.js to deal with dataviews.
Steps to Reproduce
Expected result
The dataview should stop being updated once it is removed from the client using the removeDataview() method.
There should be no need to add the disable() method after applying the removeDataview() method.
I'm adding an HTML example with this issue:
test_rm_dataview.html.zip
cc @Jesus89
The text was updated successfully, but these errors were encountered: