Skip to content

Commit

Permalink
flow types
Browse files Browse the repository at this point in the history
  • Loading branch information
gnoff committed Oct 4, 2022
1 parent e091a0e commit 97d2944
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/react-dom-bindings/src/client/ReactDOMFloatClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ let lastCurrentDocument: ?Document = null;

let previousDispatcher = null;
export function prepareToRenderResources(rootContainer: Container) {
// $FlowFixMe all Container types are Node's and have a getRootNode method
const rootNode = rootContainer.getRootNode();
// Flot thinks that getRootNode returns a Node but it actually returns a
// Document or ShadowRoot
const rootNode: FloatRoot = (rootContainer.getRootNode(): any);
lastCurrentDocument = getDocumentFromRoot(rootNode);

previousDispatcher = Dispatcher.current;
Expand Down

0 comments on commit 97d2944

Please sign in to comment.