Replies: 1 comment 5 replies
-
|
Sorry, I don't quite follow what you're saying. Would you mind putting together an example in a stackblitz showing the problem? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. I noticed that certain components have an inconsistent placement of
<Provider>. Sometimes it's the root element, sometimes it's not.Examples:
I noticed when implementing RAC I would use
renderprop to render a generically styled form field container component, RAC components that do not haveProvideras root would (for obvious reasons) not set the context props for elements like RAC label or error that are inside of that form field container component.For now I am relying on testing as I implement to determine whether render prop works or not and then opt for nesting the field container component instead if render doesn't work. However I imagine ideally it should be consistent across all of the components that implement a provider.
Beta Was this translation helpful? Give feedback.
All reactions