Skip to content

Conversation

esasova
Copy link
Collaborator

@esasova esasova commented Oct 8, 2024

No description provided.

@esasova esasova requested a review from csm-thu October 15, 2024 09:28
try {
content = (
<PowerBIEmbed cssClassName={classes.report} embedConfig={embedConfig} getEmbeddedComponent={setReport} />
<PowerBIEmbed cssClassName={classes.report} embedConfig={embedConfig} getEmbeddedComponent={() => setReport} />
Copy link
Member

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

Copy link
Collaborator Author

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 😉

@esasova esasova force-pushed the ESAS/migrate_to_react_18_PROD_13948 branch from d9badfa to f1341bc Compare October 21, 2024 12:34
Copy link
Collaborator

@nborde-CSM nborde-CSM left a 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,
Copy link
Collaborator

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,

@esasova esasova force-pushed the ESAS/migrate_to_react_18_PROD_13948 branch from a8510a1 to 8d24b6c Compare October 24, 2024 06:44
@esasova esasova changed the base branch from main to experimental/upgrade_all_dependencies October 24, 2024 06:46
@esasova esasova marked this pull request as ready for review October 24, 2024 06:46
@esasova esasova force-pushed the ESAS/migrate_to_react_18_PROD_13948 branch 2 times, most recently from ff43be8 to d1bcdbc Compare October 24, 2024 06:54
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
@esasova esasova force-pushed the ESAS/migrate_to_react_18_PROD_13948 branch from d1bcdbc to 03fc2a1 Compare October 31, 2024 10:30
@esasova esasova force-pushed the ESAS/migrate_to_react_18_PROD_13948 branch from 03fc2a1 to e2f1163 Compare October 31, 2024 10:56
@esasova esasova merged commit 21cdc40 into experimental/upgrade_all_dependencies Nov 7, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants