New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(overrides): properly implement dynamic props value #2805
Conversation
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/uber-ui-platform/baseweb/5f9st87z4 |
Visual changes were detected on this branch. Please review the following PR containing updated snapshots: #2814 |
Description
Previously implemented dynamic props overrides did not consider it needing the call time prop values provided to the component. Now, if the override props value is a function, the component returned from
getOverrides
is an HOC mapping the incoming props as defined by the function. See tests for examples of how it can be used.codesandbox highlighting why previous iteration was not sufficient
Scope