Skip to content
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

ref: Deprecate lastEventId() #10043

Merged
merged 4 commits into from
Jan 4, 2024
Merged

ref: Deprecate lastEventId() #10043

merged 4 commits into from
Jan 4, 2024

Conversation

lforst
Copy link
Member

@lforst lforst commented Jan 3, 2024

Deprecates lastEventID().

Reasoning:

  • It is only used in showReportDialog and we recommend everywhere to explicitly pass in an event id to that function.
  • It has race-condition-like behaviour.


export const showReportDialog: ShowReportDialogFunction = (
// eslint-disable-next-line deprecation/deprecation
options: ReportDialogOptions = {},
Copy link
Contributor

Choose a reason for hiding this comment

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

:(

Suggested change
options: ReportDialogOptions = {},
options: ReportDialogOptions | undefined = {},

Copy link
Member Author

Choose a reason for hiding this comment

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

This doesn't change anything

@lforst lforst merged commit 8fdf340 into develop Jan 4, 2024
95 checks passed
@lforst lforst deleted the lforst-depreacate-lasteventid branch January 4, 2024 12:02
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