mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Disable guide/group highlight in owners tree mode
This commit is contained in:
@@ -19,7 +19,7 @@ export default function Guideline(_: {||}) {
|
||||
const { lineHeight } = useContext(SettingsContext);
|
||||
const store = useContext(StoreContext);
|
||||
const treeFocused = useContext(TreeFocusedContext);
|
||||
const { selectedElementID } = useContext(TreeStateContext);
|
||||
const { ownerID, selectedElementID } = useContext(TreeStateContext);
|
||||
|
||||
const subscription = useMemo(
|
||||
() => ({
|
||||
@@ -75,6 +75,10 @@ export default function Guideline(_: {||}) {
|
||||
);
|
||||
const data = useSubscription<Data | null, Store>(subscription);
|
||||
|
||||
if (ownerID !== null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (data === null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user