Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/private/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ const getLoadingState = () => {
// vendored from dcc.Loading
const loadingSelector = (componentPath, targetComponents) => state => {
let stringPath = JSON.stringify(componentPath);
// Remove the last ] for easy match
stringPath = stringPath.substring(0, stringPath.length - 1);
// Remove the last ] for easy match and add `,` to make sure only children
// trigger the loading. See issue: https://github.com/plotly/dash/issues/3276
stringPath = stringPath.substring(0, stringPath.length - 1) + ',';
const loadingChildren = toPairs(state.loading).reduce((acc, [path, load]) => {
if (path.startsWith(stringPath) && load.length) {
if (
Expand Down