From d8f6f5b779bf64a6ecdfcd93891c4973558f67bc Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Thu, 28 Jan 2021 18:16:22 +0100 Subject: [PATCH] Update 0BDFDB.plugin.js --- Library/0BDFDB.plugin.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index ffbd4262fd..c26bbbc731 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -2611,6 +2611,7 @@ module.exports = (_ => { BDFDB.ReactUtils.forceUpdate = function (...instances) { for (let ins of instances.flat(10).filter(n => n)) if (ins.updater && typeof ins.updater.isMounted == "function" && ins.updater.isMounted(ins)) ins.forceUpdate(); }; + /* BROKEN ON CANARY */ BDFDB.ReactUtils.getInstance = function (node) { if (!BDFDB.ObjectUtils.is(node)) return null; return node[Object.keys(node).find(key => key.startsWith("__reactInternalInstance") || key.startsWith("__reactFiber"))];