-
Notifications
You must be signed in to change notification settings - Fork 0
Esas/migrate to react 18 prod 13948 #418
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
Esas/migrate to react 18 prod 13948 #418
Conversation
try { | ||
content = ( | ||
<PowerBIEmbed cssClassName={classes.report} embedConfig={embedConfig} getEmbeddedComponent={setReport} /> | ||
<PowerBIEmbed cssClassName={classes.report} embedConfig={embedConfig} getEmbeddedComponent={() => setReport} /> |
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 this change will break our usage of the getEmbeddedComponent
prop. The previous version
getEmbeddedComponent={setReport}
was equivalent to
getEmbeddedComponent={(embedObject) => setReport(embedObject)}
it had the expected function signature (embeddedComponent: Embed): void
Yet the signature of the new version is quite different: () => func
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.
oh, thank you for the remark, I didn't think about it. Now, we can rollback this change as it was necessary to avoid the app crash because of <StrictMode/>
that we decided to disable 😉
d9badfa
to
f1341bc
Compare
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.
One question but LGTM 👍
export const RolesAddingDialog = ({ | ||
selectedAgent, | ||
labels, | ||
labels: tmpLabels, |
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 it is possible do it like this :
labels: tmpLabels = DEFAULT_LABELS,
a8510a1
to
8d24b6c
Compare
ff43be8
to
d1bcdbc
Compare
When the prop visibleScenarios is not provided, the component could raise an error because it tries to access .length of the visibleScenarios array when building the ScenarioDTO for dynamic filters
d1bcdbc
to
03fc2a1
Compare
03fc2a1
to
e2f1163
Compare
21cdc40
into
experimental/upgrade_all_dependencies
No description provided.