dosubot[bot] commented on issue #35819: URL: https://github.com/apache/superset/issues/35819#issuecomment-3437866068
<!-- Answer --> The backend deletion works, but the dashboard card stays visible because the frontend isn't refreshing its state after the delete. Superset relies on the `handleDashboardDelete` function to make the DELETE request and then refresh the dashboard list in the UI. If the UI doesn't update, it's likely due to a missing state refresh, cache/memoization issue, or a bug in the dashboard list component. Ensuring that the dashboard list is re-fetched or the local state is updated after a successful delete should resolve this. You can check the implementation of `handleDashboardDelete` and the dashboard list component for proper state management and cache invalidation logic. More details on this pattern are discussed [here](https://github.com/apache/superset/issues/32533#issuecomment-2704731182). <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/15cb3c50-28c1-45ca-aed2-d41b89739a66?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/15cb3c50-28c1-45ca-aed2-d41b89739a66?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/15cb3c50-28c1-45ca-aed2-d41b89739a66?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/15cb3c50-28c1-45ca-aed2-d41b89739a66?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/15cb3c50-28c1-45ca-aed2-d41b89739a66?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/15cb3c50-28c1-45ca-aed2-d41b89739a66?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/15cb3c50-28c1-45ca-aed2-d41b89739a66?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu b) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/35819) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
