Skip to content

ref: Deprecate lastEventId()#10043

Merged
lforst merged 4 commits intodevelopfrom
lforst-depreacate-lasteventid
Jan 4, 2024
Merged

ref: Deprecate lastEventId()#10043
lforst merged 4 commits intodevelopfrom
lforst-depreacate-lasteventid

Conversation

@lforst
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

3 participants