We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3b8cd66 + 3234d04 commit aaeda27Copy full SHA for aaeda27
api/feature.js
@@ -81,6 +81,12 @@ class Feature {
81
path: window.location.pathname,
82
scratch: document.querySelector("#app") ? 3 : 2,
83
}
84
+ this.getInternals = function(element) {
85
+ let reactKey = Object.keys(element).find((key) => key.startsWith("__reactInternalInstance"))
86
+ if (!reactKey) return null;
87
+
88
+ return element[reactKey]
89
+ }
90
this.redux = document.querySelector("#app")?.[
91
Object.keys(app).find((key) => key.startsWith("__reactContainer"))
92
].child.stateNode.store
0 commit comments