Hi, some usage of Select are now deprecated by React.
In addition to https://github.com/JedWatson/react-select/issues/3191 there are also some problem with context:
Warning: Legacy context API has been detected within a strict-mode tree:
in StrictMode
in ErrorBoundary
in Unknown (created by HotExportedComponent)
in AppContainer (created by HotExportedComponent)
in HotExportedComponent
Please update the following components: MenuPlacer
Learn more about this warning here:
https://fb.me/react-strict-mode-warnings
and reference:
Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of NodeResolver which is inside StrictMode. Instead, add a ref directly to the element you want to reference.
in div (created by Context.Consumer)
in EmotionCssPropInternal (created by MenuList)
in MenuList (created by MenuPlacer)
in ScrollBlock (created by MenuPlacer)
in NodeResolver (created by ScrollCaptor)
in ScrollCaptor (created by ScrollCaptorSwitch)
in ScrollCaptorSwitch (created by MenuPlacer)
in div (created by Context.Consumer)
in EmotionCssPropInternal (created by Menu)
in Menu (created by MenuPlacer)
in MenuPlacer (created by Select)
in div (created by Context.Consumer)
in EmotionCssPropInternal (created by SelectContainer)
in SelectContainer (created by Select)
in Select (created by StateManager)
in StateManager (created by Select)
...
Learn more about using refs safely here:
https://fb.me/react-strict-mode-find-node
You can see them here:
https://codesandbox.io/embed/react-codesandboxer-example-vhvre
Thanks.
Matt'
Legacy context API warning should be partially addressed by https://github.com/JedWatson/react-select/pull/3928
where is solution . if not then why its been closed?
Hi @hemant171k, it's currently open.
Im still having this issue. Did you already merge the solution?
@hiimagu The solution has been merged, but not released yet.
@hiimagu The solution has been merged, but not released yet.
When do you plan to release it?
@olelivalife There is no definite release date and it seems unlikely that it will be soon. The last publish was on March 22. @JedWatson and @bladey have mentioned that they're trying to get a publish out "as soon as possible," but I wouldn't count on it happening anytime soon.
I hope that this problem is resolved quickly.
When will we get the fixed version of the release?
Is there any workaround for this yet?
@MaximilianLloyd I've started a fork where this is fixed in [email protected].
Most helpful comment
When do you plan to release it?