Skip to content

Conversation

@lforst
Copy link
Contributor

@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
Contributor 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
@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.

4 participants