-
Notifications
You must be signed in to change notification settings - Fork 79
fix(input-date-picker): hard to reproduce numbering-system caching issue #8518
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -201,12 +208,6 @@ export class Alert implements OpenCloseComponent, LoadableComponent, T9nComponen | |||
} | |||
|
|||
render(): VNode { | |||
numberStringFormatter.numberFormatOptions = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good but there are other components doing this same thing. Should we update them as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I was thinking the same thing. I'll start doing that after I finish some of my other issues for this milestone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW this is the only one causing an actual bug that I'm aware of because of the delay. See the repro sample:
https://codepen.io/benesri/pen/YzdodgJ
@benelan A bit late, but could you revisit the PR title and changelog entry to be brief, yet descriptive (as best as possible)? The start of the description seems like a good starting point:
|
…-not-internal * origin/main: docs(d, f, g, and h-named components): update api description refs (#8540) docs(b and c components): consistent api description refs (#8536) ci(update-doc): build design tokens to prevent errors (#8542) docs: update component readmes (#8543) ci: consistent formatting across packages (#8534) refactor(list-item): Remove unnecessary code for rendering open caret (#8537) docs(tab-nav, table, tabs, tile-select, tree, value-list): consistent api description refs (#8535) chore: release next feat(list-item): Add dragSelected property and calciteListItemDragHandleChange event (#8524) chore: release next fix(input-date-picker): hard to reproduce numbering-system caching issue (#8518) feat(handle): add selected property and calciteHandleChange event. (#8484) docs(action-bar, action-group, action-pad, alert): consistent api decription refs (#8533)
Related Issue: #7958
Summary
Resolves an extremely hard to reproduce caching issue that occurs due to Alert's timeouts. The fix is to cache Alert's number formatter per component so it doesn't impact other components.
BEGIN_COMMIT_OVERRIDE
fix(input-date-picker): Resolve a hard to reproduce number formatter caching issue that occurred due to the countdown delay in queued Alerts.
END_COMMIT_OVERRIDE