You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 13, 2023. It is now read-only.
React version provided in demo reports corresponding warning: Warning: Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?
Intended outcome:
Walking down the tree via
getDataFromTreecorrectly handlesContext.Consumerand continue walking down the whole component tree.Actual outcome:
getDataFromTreeincorrectly handlesContext.Consumercomponent and consider it as aContext.Provider. That means that render prop children function ofContext.Consumeris not called but passed down towalkTreewhich is unable to handle plain function and consider tree to be traversed. (https://github.com/jsantha/getDataFromTreeReactContextBug/blob/master/getDataFromTreeDebug.ts#L156)React version provided in demo reports corresponding warning:
Warning: Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?How to reproduce the issue:
Demo with debugged current version of
getDataFromTree: https://github.com/jsantha/getDataFromTreeReactContextBugVersion