Update docs
This commit is contained in:
@@ -36,6 +36,7 @@ export const GraphiteQueryEditorContext = ({
|
||||
});
|
||||
}, []);
|
||||
|
||||
// synchronise changes provided in props with editor's state
|
||||
useEffect(() => {
|
||||
dispatch(actions.timeRangeChanged(range));
|
||||
}, [dispatch, range]);
|
||||
|
||||
@@ -168,8 +168,6 @@ const reducer = async (action: Action, state: GraphiteQueryEditorState): Promise
|
||||
handleTargetChanged(state);
|
||||
}
|
||||
if (actions.runQuery.match(action)) {
|
||||
// handleTargetChanged() builds target from segments/tags/functions only,
|
||||
// it doesn't handle refresh when target is change explicitly
|
||||
state.refresh(state.target.target);
|
||||
}
|
||||
if (actions.toggleEditorMode.match(action)) {
|
||||
|
||||
Reference in New Issue
Block a user