Skip to content

Commit

Permalink
fix: trigger select event when featureId is changed on reearth/core (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
keiya01 committed Mar 15, 2023
1 parent d353299 commit 6f5401e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Map/Layer/hooks.ts
Expand Up @@ -173,5 +173,5 @@ function useSelectEvent({
}
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [selected]); // only selected
}, [selected, selectedFeatureId]); // only selected
}

0 comments on commit 6f5401e

Please sign in to comment.