Skip to content

fix(feedback): Get feedback integration using getIntegrationByName#64581

Merged
scttcper merged 4 commits into
masterfrom
scttcper/get-feedback-integration
Feb 5, 2024
Merged

fix(feedback): Get feedback integration using getIntegrationByName#64581
scttcper merged 4 commits into
masterfrom
scttcper/get-feedback-integration

Conversation

@scttcper

@scttcper scttcper commented Feb 5, 2024

Copy link
Copy Markdown
Member

Gets the feedback integration via the newer function as described in the deprecation notice

Gets the feedback integration via the newer `feedbackIntegration` function as described in the deprecation notice. Currently the button does not show up because feedback is undefined
@scttcper scttcper requested review from a team February 5, 2024 17:30
@scttcper scttcper requested a review from a team as a code owner February 5, 2024 17:30
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Feb 5, 2024
const config = useLegacyStore(ConfigStore);
const hub = getCurrentHub();
const feedback = hub.getIntegration(Feedback);
const feedback = feedbackIntegration();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Oh wait, I think we want to get the feedback integration instance from the SDK

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

e.g. getClient().getIntegrationByName('Feedback')

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

👍 thanks @billyvg

@scttcper

scttcper commented Feb 5, 2024

Copy link
Copy Markdown
Member Author

This PR seems to be unnecessary, i just didn't understand it was only defined in getsentry

@scttcper scttcper changed the title fix(feedback): Get feedback integration using feedbackIntegration fix(feedback): Get feedback integration using getIntegrationByName Feb 5, 2024
@scttcper scttcper merged commit bedac95 into master Feb 5, 2024
@scttcper scttcper deleted the scttcper/get-feedback-integration branch February 5, 2024 18:08
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants