feat: implement replay system with action dispatchers and context switching between main and playback modes
This commit is contained in:
@@ -64,6 +64,8 @@ export function useMapInteraction({
|
||||
useEffect(() => {
|
||||
if (mode !== "select" || !selectedFeatureIds || selectedFeatureIds.length === 0) {
|
||||
editingEngineRef.current?.clearEditing();
|
||||
// Clear the internal selection state of the select engine to stay in sync with React state
|
||||
engineBindingsRef.current.select?.clearSelection?.(false);
|
||||
}
|
||||
}, [mode, selectedFeatureIds]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user