Skip to content

Commit

Permalink
Revert "Patch graph context (#133)" (#147)
Browse files Browse the repository at this point in the history
This reverts commit 9999c15.
  • Loading branch information
Michael "Z" Goddard authored May 24, 2022
1 parent 7a83628 commit fbc2bf3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 103 deletions.
99 changes: 0 additions & 99 deletions src/devtools/patchGraphContext.ts

This file was deleted.

9 changes: 5 additions & 4 deletions src/panel/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ import {
distinctUntilChanged,
filter,
map,
scan,
startWith,
withLatestFrom,
} from 'rxjs/operators';

import {serializeGraphContext} from '../devtools/serializeGraphContext';
import {SerializedGraphContext} from '../devtools/deserializeGraphContext';
import {patchGraphContext} from '../devtools/patchGraphContext';
import {
deserializeGraphContext,
SerializedGraphContext,
} from '../devtools/deserializeGraphContext';
import {setOptionsToGraphContext} from '../devtools/setOptionsToGraphContext';
import {layoutGraphContext} from '../devtools/layoutGraphContext';

Expand Down Expand Up @@ -44,7 +45,7 @@ messages$
(a, b) => a?.id === b?.id && a?.eventCount === b?.eventCount,
),
auditTime(16),
scan(patchGraphContext, {id: ''}),
map((graphContext) => deserializeGraphContext(graphContext)),
withLatestFrom(layoutOptions$),
map(setOptionsToGraphContext),
map(layoutGraphContext),
Expand Down

0 comments on commit fbc2bf3

Please sign in to comment.