web-component-base icon indicating copy to clipboard operation
web-component-base copied to clipboard

Web Components in Easy Mode 🧱

Results 16 web-component-base issues
Sort by recently updated
recently updated
newest added
trafficstars

Putting here common feedbacks/questions we get. Just a quick dump before creating issues. Pls comment any feedback/question you have as well.

From discussion: https://main.elk.zone/indieweb.social/@thomasreggi/111569486541264803 Reproduction: https://gist.github.com/reggi/a4bc79ec03b9cdb1ee9fd6c61ee8e081 Found children usage is possible by using `onInit` hook and storing the initial children there: https://codepen.io/ayoayco-the-styleful/pen/gOqJbzW?editors=1011

Callable in templates, to signal the renderer to skip re-renders & future recalculation

Mark properties that skips serialization & getting reflected as HTML attributes.

fixes #24 This implements diffing by 1. creating a "watch list" of nodes 2. checks elements changed by comparing previous watch list to new watch list 3. applies changes to...

Currently, it's just very crude: we compare previous dom to incoming dom and if there is change, we wipe the whole children and replace. We can detect changes and call...

Currently, `attachEffect` is a separate function we have to import and call with a reference to the prop of a component class. [Demo on CodePen](https://codepen.io/ayoayco-the-styleful/pen/ExrdWPv) Current usage: ```js // somewhere...

breaking

```js static properties = ['count'] onInit() { attachEffect(this.props.count, (c) => doSomething(c)); } ```

As list of suggested extensions on Read me doc