From e485a059fe78f6586c29514b42b711a42a65dd44 Mon Sep 17 00:00:00 2001 From: Federico Zivolo Date: Tue, 21 Apr 2020 16:50:30 +0200 Subject: [PATCH] expose all Flow errors --- src/usePopper.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/usePopper.js b/src/usePopper.js index f5743df..fbd0207 100644 --- a/src/usePopper.js +++ b/src/usePopper.js @@ -97,7 +97,6 @@ export const usePopper = ( ) { return prevOptions.current; } else { - // $FlowFixMe: Cannot assign `newOptions` to `prevOptions.current` because string [1] is incompatible with string literal `updateState` [2] in property `name` of array element of property `modifiers` prevOptions.current = newOptions; return newOptions; } @@ -123,7 +122,7 @@ export const usePopper = ( } const createPopper = options.createPopper || defaultCreatePopper; - const popperInstance = createPopper( + const popperInstance = createPopper( referenceElement, popperElement, popperOptions