-
Notifications
You must be signed in to change notification settings - Fork 278
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
[nextjs][sitecore-jss-react][BYOC] always pass fetched props #1667
Conversation
// we render fallback on client to avoid problems with client-only components | ||
return ( | ||
<FEAAS.ExternalComponent | ||
componentName={componentName} | ||
clientFallback={fallbackComponent} | ||
datasources={props.fetchedData} | ||
{...componentProps} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might want to omit datasources
from here since i imagine that shouldn't be overridden
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that datasources
makes sense here, as componentProps is not the props
, it's props.params.ComponentProps
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good. thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. 👍🏼
Description / Motivation
Pass fetchedData over to BYOC at all times without overriding the ComponentProps
Testing Details
Types of changes