Skip to content
Snippets Groups Projects
Commit ef16a6a6 authored by Benjamin Franzke's avatar Benjamin Franzke
Browse files

[TASK] Migrate icon-element to @lit/task

@lit/task graduated from a 2-year @lit-labs phase, to an officially
supported helper library for lit elements. We want to start using it
as it embraces a tri-state model for async operations:

  * pending
  * complete
  * error

…which is important in order to always handle error cases instead of
silently ignoring them. Also existing or currently running requests are
aborted and/or ignored when a newer state has already been activated.

The icon-library deduplication caching strategy is refactored into a
reusable helper instance that is a bit more generic and allows to
abort (ref counted across duplicate requests) async operations.

Commands executed:

  npm install --save @lit/task
  npm run build

Resolves: #102308
Releases: main, 12.4
Change-Id: If068145a8bc87ae386af38aa6a63e4f19062345f
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81683


Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarBenjamin Franzke <ben@bnf.dev>
Tested-by: default avatarBenjamin Franzke <ben@bnf.dev>
parent 3b4b875a
Branches
Tags
No related merge requests found
Showing
with 350 additions and 113 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment