pharos icon indicating copy to clipboard operation
pharos copied to clipboard

Investigate use of reactive controllers for observers

Open Niznikr opened this issue 4 years ago • 2 comments

The problem Within Pharos there is usage of MutationObservers and ResizeObservers that can be modularized to reuse such features more easily.

The solution Use Lit's reactive controllers to improve reusability of observers across multiple components.

Niznikr avatar Sep 21 '21 20:09 Niznikr

A package is in development by Lit to add controllers for common observers.

Niznikr avatar Dec 09 '21 13:12 Niznikr

The package has been released and an example can be found on its blog post.

Niznikr avatar Jan 06 '22 12:01 Niznikr