Skip to content

Commit

Permalink
fix(devtools): Update references from _instance to instance to us…
Browse files Browse the repository at this point in the history
…e the correct one in eval calls.
  • Loading branch information
CarLeonDev committed Dec 31, 2024
1 parent a9d99b4 commit 25384d3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ base class PlainInstanceNode extends AsyncNode {
final eval = await EvalService.devtoolsEval;
final instanceInfo = await EvalService.evalsQueue.add(
() => eval.evalInstance(
'RtDevTools._instance?.getPlainInstanceInfo(instance)',
'RtDevTools.instance?.getPlainInstanceInfo(instance)',
isAlive: isAlive,
scope: {'instance': instanceRef.id!},
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ base class InstanceNode<I extends InstanceInfo> extends Node<I> {
final dependencyKey = uInfo.value?.dependencyKey;
final dependencyRef = await EvalService.evalsQueue.add(
() => eval.safeEval(
'RtDevTools._instance?.getDependencyRef("$dependencyKey")',
'RtDevTools.instance?.getDependencyRef("$dependencyKey")',
isAlive: isAlive,
),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ final class StateNode extends InstanceNode<StateInfo> {
try {
final eval = await EvalService.devtoolsEval;
final boundInstanceRef = await eval.evalInstance(
'RtDevTools._instance?.getBoundInstance("$key")',
'RtDevTools.instance?.getBoundInstance("$key")',
isAlive: isAlive,
);
return boundInstanceRef.getNode('boundInstance');
Expand All @@ -45,7 +45,7 @@ final class StateNode extends InstanceNode<StateInfo> {
try {
final eval = await EvalService.devtoolsEval;
final debugInfoRef = await eval.evalInstance(
'RtDevTools._instance?.getDebugInfo("$key")',
'RtDevTools.instance?.getDebugInfo("$key")',
isAlive: isAlive,
);
return debugInfoRef.getNode('debugInfo');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class DevtoolsService {

final pageNodes = await EvalService.evalsQueue.add(
() => eval.evalInstance(
'RtDevTools._instance?.getNodes($page, $pageSize)',
'RtDevTools.instance?.getNodes($page, $pageSize)',
isAlive: isAlive,
),
);
Expand All @@ -41,7 +41,7 @@ class DevtoolsService {

final nodeInst = await EvalService.evalsQueue.add(
() => eval.evalInstance(
'RtDevTools._instance?._nodesByKey["$nodeKey"]?.toJson()',
'RtDevTools.instance?._nodesByKey["$nodeKey"]?.toJson()',
isAlive: isAlive,
),
);
Expand Down

0 comments on commit 25384d3

Please sign in to comment.