Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix inspect stack not returning all ancestors #693

Merged
merged 14 commits into from
Nov 22, 2024
Merged
Prev Previous commit
Next Next commit
import getInspectorDataForCoordinates in InternalImports
  • Loading branch information
km1chno committed Nov 6, 2024
commit c0359f84ac38726b835520369cb3dd562dc6b002
8 changes: 5 additions & 3 deletions packages/vscode-extension/lib/wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const {
View,
Linking,
} = require("react-native");
const { getInspectorDataForCoordinates } = require("./inspector");
const { storybookPreview } = require("./storybook_helper");

const navigationPlugins = [];
Expand All @@ -22,6 +21,9 @@ const InternalImports = {
get PREVIEW_APP_KEY() {
return require("./preview").PREVIEW_APP_KEY;
},
get getInspectorDataForCoordinates() {
return require("./inspector").getInspectorDataForCoordinates;
},
};

const RNInternals = {
Expand Down Expand Up @@ -176,8 +178,8 @@ export function AppWrapper({ children, initialProps, ..._rest }) {
"RNIDE_inspect",
(payload) => {
const { id, x, y, requestStack } = payload;

getInspectorDataForCoordinates(
InternalImports.getInspectorDataForCoordinates(
km1chno marked this conversation as resolved.
Show resolved Hide resolved
mainContainerRef,
x,
y,
Expand Down