diff --git a/CHANGELOG.md b/CHANGELOG.md
index b123ad5869..bf400201bf 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
## Fixed
- [#3353](https://github.com/plotly/dash/pull/3353) Support pattern-matching/dict ids in `dcc.Loading` `target_components`
- [#3371](https://github.com/plotly/dash/pull/3371) Fix allow_optional triggering a warning for not found input.
+- [#3379](https://github.com/plotly/dash/pull/3379) Fix dcc.Graph backward compatibility with dash 2.0 for ddk.Graph
# [3.1.1] - 2025-06-29
diff --git a/components/dash-core-components/src/fragments/Graph.react.js b/components/dash-core-components/src/fragments/Graph.react.js
index 7039bf1035..c33feebf6f 100644
--- a/components/dash-core-components/src/fragments/Graph.react.js
+++ b/components/dash-core-components/src/fragments/Graph.react.js
@@ -13,11 +13,10 @@ import {
import PropTypes from 'prop-types';
import {graphPropTypes, graphDefaultProps} from '../components/Graph.react';
-import LoadingElement from '../utils/LoadingElement';
-
/* global Plotly:true */
import ResizeDetector from '../utils/ResizeDetector';
+import LoadingElement from '../utils/LoadingElement';
/**
* `autosize: true` causes Plotly.js to conform to the parent element size.
@@ -537,23 +536,46 @@ class PlotlyGraph extends Component {
}
render() {
- const {className, id} = this.props;
+ const {className, id, loading_state} = this.props;
const style = this.getStyle();
+ if (window.dash_component_api) {
+ return (
+
+
+
+
+ );
+ }
return (
-
-
+
);
}
}