Skip to content

Conversation

@terryyylim
Copy link
Contributor

What this PR does / why we need it:
A bug was introduced in a previous PR, where runtime configs were not able to load for 2 exported components for the parent app via the Micro-Frontend (MFE) architecture. This was due to missing Context Providers which have been added now to fix it.

In addition, sentry tags have been added as a new attribute to be supported via runtime configs.

Which issue(s) this PR fixes:

NONE

@terryyylim terryyylim requested a review from leonlnj June 13, 2022 15:18
@terryyylim terryyylim self-assigned this Jun 13, 2022
Copy link
Contributor

@leonlnj leonlnj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!


Sentry.init({ dsn, environment });
Sentry.setTag("app", "xp-ui");
Sentry.setTags(tags);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changing setTag to setTags is intentionally i suppose?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes intentional, since we can now set multiple tags.

@terryyylim terryyylim merged commit ac1e68a into main Jun 14, 2022
@terryyylim terryyylim deleted the fix-ui-runtime-config branch June 14, 2022 06:09
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